This repository was archived by the owner on May 6, 2026. It is now read-only.
Releases: libgraviton/rql-parser
Releases · libgraviton/rql-parser
v3.0.1
v3.0.0
This repository has been moved to the libgraviton organization - as it was initially created for https://github.com/libgraviton/graviton. Its license has been changed to MIT.
We are not quite aware how much usage this package has. It is possible that this packaged will be abandoned and merged with https://github.com/libgraviton/php-rql-parser in order to fulfill our needs and to ease maintenance.
If you don't want this, please create an issue so we are aware that outside users are actually using this. Please tell why you don't want the merge.
Features in this release
- Minimum PHP requirement raised to 7.2.*
- Implement
toRql()on allAbstractNodeobjects. This allows to go backwards and create a fully valid RQL query string from aQueryinstance. - Allow for timezone aware
DateTimequeries - Timezones passed in Queries will now be correctly reflected in the resultingDateTimeinstance.
Breaking changes
- The namespace has been changed. It now lives in
Graviton\RqlParser. If you used the package before, you can just replaceXiag\Rql\ParserwithGraviton\RqlParser - All custom
AbstractNodeimplementations need to implement the newtoRql()function - the RQL string that equals to the Node generated.
v2.0.0
The main goal of this release is to make the parser more flexible and more extendable.
The new parser is not compatible with the 1.x versions. So please make sure you don't use * in your composer.json.
Breaking changes
Xiag\Rql\Parser\Node\Query\LogicOperatornamespace has been renamed toXiag\Rql\Parser\Node\Query\LogicalOperatorXiag\Rql\Parser\TokenParsernamespace has been renamed toXiag\Rql\Parser\NodeParserXiag\Rql\Parser\Parser::createDefault()has been removed in favor of the default constructornew Xiag\Rql\Parser\Parser()Xiag\Rql\Parser\Parser\DataType\DateTimehas been removed in favor of\DateTimetrue,false,nulltype guessing has been removed. Use the values functions instead- Date type (without time) has been removed. Use dateime
YYYY-MM-DD\Thh:mm:ss\Zinstead (here's an example how to add it) - The minimal PHP version has been increased to 5.5
New features
LexerandParserhave become more flexible. Look at the examplesglobparsing has been completely rewritten (#1, #7)- New
Advanced usageexamples
Bugfixes
- Fixed the bug with
globineqoperator (#1)