Skip to content

manik005/php-json-query

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clue/json-query Build Status

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

See also the examples.

Install

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

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

License

MIT

About

The JSON query language implemented in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%