https://github.com/adamwojs/json-expr
Experimental library to build complex search criteria in MongoDB style
https://github.com/adamwojs/json-expr
experimental mongodb php php-library rest rest-api
Last synced: 9 months ago
JSON representation
Experimental library to build complex search criteria in MongoDB style
- Host: GitHub
- URL: https://github.com/adamwojs/json-expr
- Owner: adamwojs
- License: mit
- Created: 2017-03-05T20:56:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-10T20:13:31.000Z (over 8 years ago)
- Last Synced: 2025-02-05T05:20:14.484Z (11 months ago)
- Topics: experimental, mongodb, php, php-library, rest, rest-api
- Language: PHP
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON-EXPR
JSON-EXPR (working title) is experimental library to build complex search criteria in MongoDB style e.g.
```
{
"$and": [
{
"$or": [
{
"foo": {
"$eq": "A"
}
},
{
"foo": {
"$eq": "B"
}
}
]
},
{
"bar": {
"$gt": 100
}
}
]
}
```
## Project status
Proof of concept
## Requirements
* PHP >= 7.0
## Usage examples
* RESTful search/filtering