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 allAbstractNode
objects. This allows to go backwards and create a fully valid RQL query string from aQuery
instance. - Allow for timezone aware
DateTime
queries - Timezones passed in Queries will now be correctly reflected in the resultingDateTime
instance.
Breaking changes
- The namespace has been changed. It now lives in
Graviton\RqlParser
. If you used the package before, you can just replaceXiag\Rql\Parser
withGraviton\RqlParser
- All custom
AbstractNode
implementations need to implement the newtoRql()
function - the RQL string that equals to the Node generated.