From 070ab7d4302e1a03ac1755f6fc013161d71788a9 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Mon, 20 Mar 2017 23:15:17 +0900 Subject: [PATCH] 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. --- docs/getting-started.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 8459942..d88a9d1 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -4,18 +4,11 @@ first learn about GraphQL on [official website](http://graphql.org/learn/). # Installation -Using [composer](https://getcomposer.org/doc/00-intro.md): -add `composer.json` file to your project root folder with following contents: -``` -{ - "require": { - "webonyx/graphql-php": "^0.9" - } -} -``` -and run `composer install`. +Using [composer](https://getcomposer.org/doc/00-intro.md), simply run: -If you already have composer.json file - simply run: `composer require webonyx/graphql-php="^0.9"` +```sh +composer require webonyx/graphql-php +``` # Upgrading We try to keep library releases backwards compatible. But when breaking changes are inevitable