PHPackages                             clue/json-query - 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. [Search &amp; Filtering](/categories/search)
4. /
5. clue/json-query

ActiveLibrary[Search &amp; Filtering](/categories/search)

clue/json-query
===============

JSON query language filter in PHP

v0.3.0(11y ago)3015.9k6[2 issues](https://github.com/clue/php-json-query/issues)[1 PRs](https://github.com/clue/php-json-query/pulls)MITPHPPHP &gt;=5.3

Since Aug 21Pushed 4y ago5 watchersCompare

[ Source](https://github.com/clue/php-json-query)[ Packagist](https://packagist.org/packages/clue/json-query)[ Docs](https://github.com/clue/php-json-query)[ RSS](/packages/clue-json-query/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

clue/json-query [![Build Status](https://camo.githubusercontent.com/13dbc6f9c05b54dd685a17315c9f49d92ce194713e639ae9821e0a832898f889/68747470733a2f2f7472617669732d63692e6f72672f636c75652f7068702d6a736f6e2d71756572792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/clue/php-json-query)
========================================================================================================================================================================================================================================================================================================

[](#cluejson-query-)

An implementation of the [JSON Query Language](https://github.com/clue/json-query-language) specification in PHP.

The [JSON Query Language](https://github.com/clue/json-query-language) specification is currently in draft mode. This library implements the [v0.4 draft](https://github.com/clue/json-query-language/releases/tag/v0.4.0).

> Note: This project is in beta stage! Feel free to report any issues you encounter.

Quickstart example
------------------

[](#quickstart-example)

Once [installed](#install), you can use the following code to get started:

```
$filter = new QueryExpressionFilter(array('age' => 20));

$filter->doesMatch(array('name' => 'Tester', 'age' => 20))); // true
$filter->doesMatch(array('name' => 'Tester', 'age' => 22))); // false
```

Install
-------

[](#install)

The recommended way to install this library is [through composer](http://getcomposer.org). [New to composer?](http://getcomposer.org/doc/00-intro.md)

```
{
    "require": {
        "clue/json-query": "~0.3.0"
    }
}
```

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.9% 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 ~52 days

Total

3

Last Release

4230d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776829?v=4)[Christian Lück](/maintainers/clue)[@clue](https://github.com/clue)

---

Top Contributors

[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (31 commits)")[![maximkou](https://avatars.githubusercontent.com/u/2118695?v=4)](https://github.com/maximkou "maximkou (1 commits)")

---

Tags

jsonqueryfilterJSON query language

### Embed Badge

![Health badge](/badges/clue-json-query/health.svg)

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

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k276.5M9](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9530.3M181](/packages/laminas-laminas-filter)[mehradsadeghi/laravel-filter-querystring

Filter your queries based on url query string parameters like a breeze.

168128.5k](/packages/mehradsadeghi-laravel-filter-querystring)[ambengers/query-filter

Laravel package for filtering resources with request query string

3513.9k](/packages/ambengers-query-filter)[joskolenberg/laravel-jory

Create a flexible API for your Laravel application using json based queries.

4514.2k](/packages/joskolenberg-laravel-jory)[hashemi/queryfilter

A simple &amp; dynamic package for your eloquent query in laravel. It will help you to write query logic individual for each parameter.

391.2k](/packages/hashemi-queryfilter)

PHPackages © 2026

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