PHPackages                             chili-labs/json-patch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. chili-labs/json-patch

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

chili-labs/json-patch
=====================

Simple library for applying JSON Patches (RFC 6902) to PHP data structures

v1.0.0(11y ago)43.0k21MITPHPPHP &gt;=5.4.0

Since Feb 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/chili-labs/json-patch)[ Packagist](https://packagist.org/packages/chili-labs/json-patch)[ RSS](/packages/chili-labs-json-patch/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

JSONPatch
=========

[](#jsonpatch)

###### Simple library for applying JSON Patches (RFC 6902) to PHP data structures

[](#simple-library-for-applying-json-patches-rfc-6902-to-php-data-structures)

[![Latest Stable Version](https://camo.githubusercontent.com/71a40e23e09be7d3b3f11fc5cb7f8d9846429649d74145eb55986e84461418ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696c692d6c6162732f6a736f6e2d70617463682e7376673f7374796c653d666c6174266c6162656c3d737461626c65)](https://packagist.org/packages/chili-labs/json-patch)[![Total Downloads](https://camo.githubusercontent.com/45905c6973b093da272dcd46eacb0a3ab8b1e7113d7145cb3efcf6d175c6a79d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696c692d6c6162732f6a736f6e2d70617463682e7376673f7374796c653d666c6174)](https://packagist.org/packages/chili-labs/json-patch)[![License](https://camo.githubusercontent.com/cd60a7aae980d2aa8db2e5ee05dbd66e5c830a2ac0d79e5a0ecb0adc30eb5253/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6368696c692d6c6162732f6a736f6e2d70617463682e7376673f7374796c653d666c6174)](https://packagist.org/packages/chili-labs/json-patch)[![Build Status](https://camo.githubusercontent.com/0bbbb1bc223d9a85da784a3d1a62bc1833a4cc9065330b45a0e43b5495e53c47/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6368696c692d6c6162732f6a736f6e2d70617463682e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/chili-labs/json-patch)[![Coverage Status](https://camo.githubusercontent.com/f21ac21c7808f9179c294e1348de677ba35533bb6f643b1456b9683b80b46095/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6368696c692d6c6162732f6a736f6e2d70617463682e7376673f7374796c653d666c6174)](https://coveralls.io/r/chili-labs/json-patch?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/d9d476f12b626f4ff1c282412e551db3f57773a3bb9fc1c8144e8fc47eeeb0da/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33346531616165312d663633302d343235642d386238622d3937383239376363623862342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/34e1aae1-f630-425d-8b8b-978297ccb8b4)

Description
-----------

[](#description)

This library implements the [RFC 6902](https://tools.ietf.org/html/rfc6902) for PHP. Together with the [JSONPointer](https://github.com/chili-labs/json-patch) library it tries to simplify applying json-patches to various php data structures.

Installation
------------

[](#installation)

To install this library, run the command below and you will get the latest version:

```
composer require chili-labs/json-patch

```

Usage
-----

[](#usage)

The documentation is work in progress.

Tests
-----

[](#tests)

To run the test suite, you need [composer](http://getcomposer.org).

```
php composer.phar install
phpunit

```

License
-------

[](#license)

JSONPatch is licensed under the MIT license.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~43 days

Total

3

Last Release

4077d ago

Major Versions

v0.1.1 → v1.0.02015-05-04

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.3

v1.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7cde42b54238fd17408f85319094d265add1ac23c2ac2b5a171cafd34e20496?d=identicon)[danez](/maintainers/danez)

---

Top Contributors

[![danez](https://avatars.githubusercontent.com/u/231804?v=4)](https://github.com/danez "danez (40 commits)")

### Embed Badge

![Health badge](/badges/chili-labs-json-patch/health.svg)

```
[![Health](https://phpackages.com/badges/chili-labs-json-patch/health.svg)](https://phpackages.com/packages/chili-labs-json-patch)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k955.1M154.3k](/packages/phpunit-phpunit)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M97](/packages/dedoc-scramble)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

3.9k27.8k](/packages/azuracast-azuracast)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
