Skip to content

Commit 4bd7098

Browse files
authored
Update quick-start.md
Update sections related to wpackagist to include an example and provide more helpful links.
1 parent 388494f commit 4bd7098

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

docs/quick-start.md

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,47 @@ Installing plugins with [Composer](https://getcomposer.org/), a PHP dependency m
3333

3434
WPGraphQL is available for installing with Composer from [packagist.org](https://packagist.org/packages/wp-graphql/wp-graphql) and [wpackagist.org](https://wpackagist.org/search?q=wp-graphql\&type=any\&search=).
3535

36-
The most straight forward way to install WPGraphQL with composer would be to run the following command:
36+
You can add WPGraphQL as a dependency to your project with the following command:
3737

38-
```shell
39-
composer require wpackagist-plugin/wp-graphql
38+
```bash
39+
composer require wp-graphql/wp-graphql
4040
```
4141

42-
This would add WPGraphQL as a dependency for your project.
42+
Below is an example of a composer.json file with WPGraphQL added as as a plugin dependency:
43+
44+
```json{5-12,14-16,19-21}
45+
{
46+
"name": "your-name/your-project",
47+
"description": "Your WordPress Project",
48+
"repositories":[
49+
{
50+
"type":"composer",
51+
"url":"https://wpackagist.org",
52+
"only": [
53+
"wpackagist-plugin/*",
54+
"wpackagist-theme/*"
55+
]
56+
}
57+
],
58+
"require": {
59+
"wpackagist-plugin/wp-graphql":"trunk",
60+
},
61+
"extra": {
62+
"installer-paths": {
63+
"wp-content/plugins/{$name}/": [
64+
"type:wordpress-plugin"
65+
]
66+
}
67+
}
68+
}
69+
```
70+
71+
You can read more about using Composer, Packagist and WPackagist below:
4372

44-
The fine folks of [roots.io](https://roots.io/) have written more information on [Using Composer with WordPress](https://roots.io/using-composer-with-wordpress/).
73+
- [Using Composer with WordPress](https://roots.io/using-composer-with-wordpress/)
74+
- [WPackagist.org](https://wpackagist.org/)
75+
- [Composer: Basic Usage](https://getcomposer.org/doc/01-basic-usage.md)
76+
- [Composer: Package Types](https://getcomposer.org/doc/04-schema.md#type)
4577

4678
#### Download Zip from Github
4779

0 commit comments

Comments
 (0)