4

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 realtime data. It is up to 1-2 minutes stale, which is not ideal.

1 Answer 1

0

Try out parse_str() in php.

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.