Download the PHP package dobron/search-query-parser without Composer
On this page you can find all versions of the php package dobron/search-query-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dobron/search-query-parser
More information about dobron/search-query-parser
Files in dobron/search-query-parser
Download dobron/search-query-parser
More information about dobron/search-query-parser
Files in dobron/search-query-parser
Vendor dobron
Package search-query-parser
Short Description A simple parser for advanced search query syntax in PHP.
License MIT
Package search-query-parser
Short Description A simple parser for advanced search query syntax in PHP.
License MIT
Please rate this library. Is it a good library?
Informations about the package search-query-parser
🔍 Search Query Parser
The Query String Parser library performs search query text parsing.
This library is perfect for integrating complex search (like Google search) into your application. Small part of base code (javascript) is come from https://github.com/nepsilon/search-query-parser
Example usage of Parser:
Output:
Options:
keywords
, that can be separated by commas (,). Accepts an array of strings.ranges
, that can be separated by a hyphen (-). Accepts an array of strings.offsets
, a boolean controls the behaviour of the returned query. If set totrue
, the query will contain the offsets object. If set tofalse
, the query will not contain the offsets object. Defaults totrue
.
Example usage of Compiler:
Output:
Options:
alwaysQuote
, a boolean controls the behaviour of the searched query. If set totrue
, the query will contain the quotes. If set tofalse
, the query will not contain the quotes. Defaults tofalse
.
Queries:
Type | Example |
---|---|
Query for tags | cat |
Query for multiple tags | cat dog , "Hello World" |
Exclude results containing a certain word | cat -dog |
Query for equality | author:John Snow , author:"John Snow" |
Query for multiple equality | author:me,John Snow |
Query for values in range | date:2000/01/01-2020/01/01 , price:5-50 |
Query for values greater than another value | price:>10 , price:>=10 |
Query for values less than another value | price:<100 , price:<=100 |
Mix query for tags and condition | price:>10 price:<100 |
Filter qualifiers based on exclusion | price:>10 -language:php |
How to use it?
Install it using:
Test:
All versions of search-query-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-json Version *
The package dobron/search-query-parser contains the following files
Loading the files please wait ....