PHPackages                             chili-labs/json-pointer - 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-pointer

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

chili-labs/json-pointer
=======================

Simple library for accessing PHP data structures with JSON Pointers (RFC 6901)

v1.0.0(11y ago)43.2k21MITPHPPHP &gt;=5.3.3

Since Feb 6Pushed 11y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (6)Used By (1)

JSONPointer
===========

[](#jsonpointer)

###### Simple library for accessing PHP data structures with JSON Pointers (RFC 6901)

[](#simple-library-for-accessing-php-data-structures-with-json-pointers-rfc-6901)

[![Latest Stable Version](https://camo.githubusercontent.com/a45a3c1587d7cedfcbf4b1073e136f27f9f4c42c71ca818234ee08412a9eb857/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696c692d6c6162732f6a736f6e2d706f696e7465722e7376673f7374796c653d666c6174266c6162656c3d737461626c65)](https://packagist.org/packages/chili-labs/json-pointer)[![Total Downloads](https://camo.githubusercontent.com/64c8508f04cfa9dc5a4688877fee8d9361eb3f1e29798dbdf5013975b18474ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696c692d6c6162732f6a736f6e2d706f696e7465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/chili-labs/json-pointer)[![License](https://camo.githubusercontent.com/c2b9bd2cc7e3a4311552fd8ccc98e266bbc025325c4ffe898d4315db75da80ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6368696c692d6c6162732f6a736f6e2d706f696e7465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/chili-labs/json-pointer)[![Build Status](https://camo.githubusercontent.com/932788147018968ee7d12f9c0e838337e69ea5a7bbf77af2de4aba85eabf0ce3/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6368696c692d6c6162732f6a736f6e2d706f696e7465722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/chili-labs/json-pointer)[![Coverage Status](https://camo.githubusercontent.com/5cfe431823fd1f6bca3c9eb03af11b8a9529faf705b78a431e5cfe767d29ca38/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6368696c692d6c6162732f6a736f6e2d706f696e7465722e7376673f7374796c653d666c6174)](https://coveralls.io/r/chili-labs/json-pointer?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/bd11d624e0b01f14583d7b331a63ddd1fefa7730c8aaf877a13644cf63380a6d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32353633346537382d613734322d343566342d626632332d6364366634383533366533652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/25634e78-a742-45f4-bf23-cd6f48536e3e)

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

[](#description)

This library implements the [RFC 6901](https://tools.ietf.org/html/rfc6901) for PHP. It is possible to parse a path (e.g.`/some/path`) or create the `JsonPointer` object from array (e.g. `['some','path']`). There are several other good libraries ( [1](https://github.com/gamringer/JSONPointer), [2](https://github.com/webnium/php-json-pointer), [3](https://github.com/raphaelstolt/php-jsonpointer)) for parsing json-pointers, but none of them was able to access other php structures besides default arrays. With different accessors, which are part of this library, you can apply json-pointers to either arrays or also plain objects. Custom accessors can simply be created on your own.

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

[](#installation)

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

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

```

Usage
-----

[](#usage)

The documentation is work in progress.

Tests
-----

[](#tests)

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

```
composer install
phpunit

```

License
-------

[](#license)

JSONPointer is licensed under the MIT license.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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 ~10 days

Total

5

Last Release

4077d ago

Major Versions

v0.1.3 → v1.0.02015-03-17

### 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 (47 commits)")

### Embed Badge

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

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

PHPackages © 2026

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