Skip to content

Commit 070ab7d

Browse files
authored
Simplify install instructions
Composer can create `composer.json` if missing, and letting composer pick the latest version by itself is more future proof than hardcoding a version that need to be changed on each release.
1 parent 7ef9f91 commit 070ab7d

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

docs/getting-started.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ first learn about GraphQL on [official website](http://graphql.org/learn/).
44

55
# Installation
66

7-
Using [composer](https://getcomposer.org/doc/00-intro.md):
8-
add `composer.json` file to your project root folder with following contents:
9-
```
10-
{
11-
"require": {
12-
"webonyx/graphql-php": "^0.9"
13-
}
14-
}
15-
```
16-
and run `composer install`.
7+
Using [composer](https://getcomposer.org/doc/00-intro.md), simply run:
178

18-
If you already have composer.json file - simply run: `composer require webonyx/graphql-php="^0.9"`
9+
```sh
10+
composer require webonyx/graphql-php
11+
```
1912

2013
# Upgrading
2114
We try to keep library releases backwards compatible. But when breaking changes are inevitable

0 commit comments

Comments
 (0)