开发者

php url/rest boolean logic parser

Are there any existing php modules/libraries/classes to parse out boolean logic (and, or, not, in, not in, =, <, >, and grouping) from a string/url?

I am creating a rest api into a database and would like to support advanced boolean queries for the column/field values of each object.

My current fallback is to support simple column filters (/object/*/key/val) via php/sql and use our solr instance of the database to support direct solr queries (which has tons of query features). The only problem with this is that solr is not re开发者_Go百科altime data. It is up to 1-2 minutes stale, which is not ideal.


Try out parse_str() in php.

For more info about this check https://www.php.net/manual/en/function.parse-str.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜