# Alto JSON Patch

HTML: [altophp.com/json-patch](https://altophp.com/json-patch/)

Alto JSON Patch applies all six RFC 6902 operations and generates deterministic
patches between PHP values.

```php
use Alto\JsonPatch\JsonPatch;

$document = ['status' => 'draft'];
$patch = [
    ['op' => 'replace', 'path' => '/status', 'value' => 'published'],
];

$result = JsonPatch::apply($document, $patch);
echo $result['status'];
```

The result is `published`; the input remains unchanged. The package transforms
in-memory values and JSON strings. Persistence, authorization, version storage,
and conflict resolution remain application responsibilities.

## Documentation

- [Installation](https://altophp.com/json-patch/installation.md)
- [Getting started](https://altophp.com/json-patch/getting-started.md)
- [Operations](https://altophp.com/json-patch/operations.md)
- [Pointers](https://altophp.com/json-patch/pointers.md)
- [Diffing](https://altophp.com/json-patch/diffing.md)
- [Errors](https://altophp.com/json-patch/errors.md)

---

Next: [Installation](https://altophp.com/json-patch/installation.md)

---

ALTO\JSON PATCH: [altophp.com/json-patch](https://altophp.com/json-patch/)
ALTO(PHP): [altophp.com](https://altophp.com/)
