clue/json-query

JSON query language filter in PHP

Maintainers

👁 clue

Package info

github.com/clue/php-json-query

pkg:composer/clue/json-query

Statistics

Installs: 15 938

Dependents: 1

Suggesters: 0

Stars: 30

Open Issues: 3

v0.3.0 2014-12-03 19:29 UTC

Requires

  • php: >=5.3

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT c2243df573a539843973ed49a9c126daa844232e

  • Christian Lück <christian.woop@lueck.tv>

jsonfilterqueryJSON query language

This package is auto-updated.

Last update: 2026-06-06 12:41:40 UTC


README

An implementation of the JSON Query Language specification in PHP.

The JSON Query Language specification is currently in draft mode. This library implements the v0.4 draft.

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

Quickstart example

Once installed, 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

The recommended way to install this library is through composer. New to composer?

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

License

MIT