From 0b01e04be936ea6d4195492e8437df272d8a9c5f Mon Sep 17 00:00:00 2001 From: addshore Date: Tue, 15 Jul 2014 16:40:30 +0100 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 27c775e..69c81ed 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,22 @@ On Packagist: ## Installation -Use composer to install the library and all its dependencies: +Use one of the below methods: + +1 - Use composer to install the library and all its dependencies using the master branch: composer require "addwiki/wikibase-api:dev-master" +2 - Create a composer.json file that just defines a dependency on version 0.2 of this package, and run 'composer install' in the directory: + + { + "require": { + "addwiki/wikibase-api": "~0.2.0" + } + } + -Example Usage ------- +## Example Usage ```php // Load all of the things @@ -61,4 +70,4 @@ try{ catch( \Mediawiki\Api\UsageException $e ) { echo "Oh no! I failed to merge!"; } -``` \ No newline at end of file +```