xiag / rql-command
Installs: 3 938
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.5
- symfony/console: >=2.6
- xiag/rql-parser: ~2.0.0
Requires (Dev)
README
This is console commands to visualize your RQL code using Symfony console and RQL parser.
Installation
composer require xiag/rql-command
Usage
./vendor/bin/rql
Lexer command
./vendor/bin/rql rql:lexer '(eq(a,false())|(c=string:3)|like(d,a*ab%2Ac?def))¬(e=6.0)&sort(+a,-b)&limit(1,2)'
Parser command
./vendor/bin/rql rql:parser '(eq(a,false())|(c=string:3)|(d=in=(4,5)¬(e=6.0))|f>2015-04-19T05:05:05Z)&like(g,a*ab%2Ac?def)&sort(+a,-b)&limit(1,2)'