Skip to content

Commit

Permalink
Adding section on using with Composer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Jan 5, 2015
1 parent 537fac0 commit 877aa64
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ Implements IETF JSON-patch (RFC 6902) and JSON-pointer (RFC 6901):
http://tools.ietf.org/html/rfc6902
http://tools.ietf.org/html/rfc6901

Using with Composer
-------------------

To use this library as a Composer dependency in your project, include the
following sections in your project's `composer.json` file:

```
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mikemccabe/json-patch-php"
}
],
"require": {
"mikemccabe/json-patch-php": "dev-master"
}
```

Then, in your project's code, use the `JsonPatch` class definition from
the `mikemccabe\JsonPatch` namespace like so:

```php
use mikemccabe\JsonPatch\JsonPatch;
```

Entry points
------------

Expand Down

0 comments on commit 877aa64

Please sign in to comment.