Skip to content

Commit 877aa64

Browse files
committed
Adding section on using with Composer.
1 parent 537fac0 commit 877aa64

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,31 @@ Implements IETF JSON-patch (RFC 6902) and JSON-pointer (RFC 6901):
88
http://tools.ietf.org/html/rfc6902
99
http://tools.ietf.org/html/rfc6901
1010

11+
Using with Composer
12+
-------------------
13+
14+
To use this library as a Composer dependency in your project, include the
15+
following sections in your project's `composer.json` file:
16+
17+
```
18+
"repositories": [
19+
{
20+
"type": "vcs",
21+
"url": "https://github.com/mikemccabe/json-patch-php"
22+
}
23+
],
24+
"require": {
25+
"mikemccabe/json-patch-php": "dev-master"
26+
}
27+
```
28+
29+
Then, in your project's code, use the `JsonPatch` class definition from
30+
the `mikemccabe\JsonPatch` namespace like so:
31+
32+
```php
33+
use mikemccabe\JsonPatch\JsonPatch;
34+
```
35+
1136
Entry points
1237
------------
1338

0 commit comments

Comments
 (0)