clue / json-query
JSON query language filter in PHP
Installs: 12 046
Dependents: 0
Suggesters: 0
Security: 0
Stars: 30
Watchers: 5
Forks: 6
Open Issues: 3
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2024-07-06 08:29:58 UTC
README
clue/json-query ![Build Status](https://camo.githubusercontent.com/f4ea2dd9100c2b0c6362cccd0b3415245845e8bd8a8bf0006be016bf0d681f1f/68747470733a2f2f7472617669732d63692e6f72672f636c75652f7068702d6a736f6e2d71756572792e7376673f6272616e63683d6d6173746572)
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