Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed Jul 15, 2014
1 parent f9a554c commit 0b01e04
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -61,4 +70,4 @@ try{
catch( \Mediawiki\Api\UsageException $e ) {
echo "Oh no! I failed to merge!";
}
```
```

0 comments on commit 0b01e04

Please sign in to comment.