PHPackages                             phpdocumentor/json-path - 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. phpdocumentor/json-path

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

phpdocumentor/json-path
=======================

Access php objects with json path expressions

0.2.1(10mo ago)163.0k—7.2%2[1 issues](https://github.com/phpDocumentor/json-path/issues)1MITPHPPHP 8.1.\*|8.2.\*|8.3.\*|8.4.\*

Since May 24Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/phpDocumentor/json-path)[ Packagist](https://packagist.org/packages/phpdocumentor/json-path)[ RSS](/packages/phpdocumentor-json-path/feed)WikiDiscussions main Synced 2w ago

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

JSON-path
=========

[](#json-path)

JSON-path is a simple JSON path parser and evaluator for PHP. It is based on the JSONPath implementation in [Goessner's JSONPath](http://goessner.net/articles/JsonPath/). The code allows you to parse json paths and evaluate them on php objects. Which makes it a query language for php object structures.

It's propably not the fastest solution to query php objects, but as the paths are stored as plain strings, it's easy to use them in configuration files or databases. This makes is a good solution for tools that need to query a php object structure based on user input.

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

[](#installation)

The recommended way to install JSON-path is through [Composer](http://getcomposer.org).

```
  composer require phpdocumentor/json-path
```

Usage
-----

[](#usage)

```
$parser = \phpDocumentor\JsonPath\Parser::createInstance();
$query = $parser->parse('.store.book[*].author');

$executor = new \phpDocumentor\JsonPath\Executor();
foreach ($executor->execute($query, $json) as $result) {
    var_dump($result);
}
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance47

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~249 days

Total

3

Last Release

318d ago

PHP version history (2 changes)0.1.0PHP 7.4|8.0.\*|8.1.\*

0.2.0PHP 8.1.\*|8.2.\*|8.3.\*|8.4.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/471baf346b526fa9e1259ee3d577b1dd72fbb45337b495d5475f87ba063490cb?d=identicon)[jaapio](/maintainers/jaapio)

---

Top Contributors

[![jaapio](https://avatars.githubusercontent.com/u/1060433?v=4)](https://github.com/jaapio "jaapio (14 commits)")[![lacatoire](https://avatars.githubusercontent.com/u/20201470?v=4)](https://github.com/lacatoire "lacatoire (1 commits)")[![matsuo](https://avatars.githubusercontent.com/u/141021?v=4)](https://github.com/matsuo "matsuo (1 commits)")[![mvriel](https://avatars.githubusercontent.com/u/193704?v=4)](https://github.com/mvriel "mvriel (1 commits)")[![odinuv](https://avatars.githubusercontent.com/u/4319320?v=4)](https://github.com/odinuv "odinuv (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpdocumentor-json-path/health.svg)

```
[![Health](https://phpackages.com/badges/phpdocumentor-json-path/health.svg)](https://phpackages.com/packages/phpdocumentor-json-path)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M430](/packages/easycorp-easyadmin-bundle)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

636.3M49](/packages/symfony-ux-autocomplete)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54686.7k25](/packages/solspace-craft-freeform)[api-platform/symfony

Symfony API Platform integration

385.0M152](/packages/api-platform-symfony)[api-platform/serializer

API Platform core Serializer

295.3M101](/packages/api-platform-serializer)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.6M378](/packages/symfony-ai-platform)

PHPackages © 2026

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