graviton / php-rql-parser
doctrine-odm query building wrapper to graviton/rql-parser
Installs: 53 079
Dependents: 1
Suggesters: 0
Security: 0
Stars: 15
Watchers: 24
Forks: 4
Open Issues: 0
Requires
- php: >=7.3.0
- doctrine/mongodb-odm: >=2.0.0
- graviton/rql-parser: ~3
- symfony/event-dispatcher: >=4.3.0
- dev-develop
- v5.1.0
- v5.0.0
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.5.3
- v3.5.2
- v3.5.1
- v3.5.0
- v3.4.1
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.0
- v2.5.1
- v2.5.0
- v2.4.0
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0-alpha17
- v2.0.0-alpha16
- v2.0.0-alpha15
- v2.0.0-alpha14
- v2.0.0-alpha13
- v2.0.0-alpha12
- v2.0.0-alpha11
- v2.0.0-alpha10
- v2.0.0-alpha9
- v2.0.0-alpha8
- v2.0.0-alpha7
- v2.0.0-alpha6
- v2.0.0-alpha5
- v2.0.0-alpha4
- v2.0.0-alpha3
- v2.0.0-alpha2
- v2.0.0-alpha1
- 1.1.0
- 1.0.0
- dev-feature/project
- dev-master
- dev-support/sf3
This package is auto-updated.
Last update: 2024-11-13 16:42:53 UTC
README
This is a wrapper around libgraviton/rql-parser that combines that parser with a small layer of mongodb integration.
This package adheres to SemVer versioning.
It uses a github version of git-flow in which new features and bugfixes must be merged to develop using a github pull request. It uses the standard git-flow naming conventions with the addition of a 'v' prefix to version tags.
Installation
Install it using composer.
composer require graviton/php-rql-parser
Usage
<?php require 'vendor/autoload.php'; $rql = 'or(eq(name,foo)&eq(name,bar))'; /** @var \Doctrine\ODM\MongoDB\Query\Builder $builder */ $visitor = new \Graviton\Rql\Visitor\MongoOdm(); $visitor->setBuilder($builder); $lexer = new \Graviton\RqlParser\Lexer; $parser = \Graviton\RqlParser\Parser::createDefault(); // parse some Resource Query Language $rqlQuery = $parser->parse($lexer->tokenize($rql)); // get query $query = $visitor->visit($rqlQuery)->getQuery(); // ...
Development
We welcome contributions on the develop branch.