Download the PHP package openregion/sphinxql-query-builder without Composer
On this page you can find all versions of the php package openregion/sphinxql-query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openregion/sphinxql-query-builder
More information about openregion/sphinxql-query-builder
Files in openregion/sphinxql-query-builder
Download openregion/sphinxql-query-builder
More information about openregion/sphinxql-query-builder
Files in openregion/sphinxql-query-builder
Vendor openregion
Package sphinxql-query-builder
Short Description A PHP query builder for SphinxQL and ManticoreQL with MySQLi and PDO drivers.
License Apache-2.0
Homepage https://github.com/openregion/SphinxQL-Query-Builder
Package sphinxql-query-builder
Short Description A PHP query builder for SphinxQL and ManticoreQL with MySQLi and PDO drivers.
License Apache-2.0
Homepage https://github.com/openregion/SphinxQL-Query-Builder
Please rate this library. Is it a good library?
Informations about the package sphinxql-query-builder
SphinxQL Query Builder
This a fork of FoolCode's SphinxQL Query Builder. It seems like original one is no longer maintained.
A fluent PHP query builder for SphinxQL and ManticoreQL.
It supports:
SELECT,INSERT,REPLACE,UPDATE,DELETEMATCH()building (includingMatchBuilder)FACETqueries- batched/multi-queries
- helper commands (
SHOW,CALL, maintenance operations) - percolate workflows for Manticore
- both
mysqliandPDOdrivers
Installation
Requirements:
- PHP 8.2+
mysqliorpdo_mysql- Running Sphinx Search or Manticore Search server
Quick Start
Connection Setup
mysqli driver
PDO driver
Query Builder Examples
Compile SQL before executing
Insert rows
Replace rows
Update rows (including MVA)
Delete rows
Grouped boolean filters
MATCH with builder callback
ORDER BY KNN
Subqueries
Helper API Example
Compile examples from tests:
$helper->showTables()->compile()->getCompiled()->SHOW TABLES$helper->showTables('rt')->compile()->getCompiled()->SHOW TABLES LIKE 'rt'$helper->showTableStatus()->compile()->getCompiled()->SHOW TABLE STATUS$helper->showTableStatus('rt')->compile()->getCompiled()->SHOW TABLE rt STATUS$helper->callSuggest('teh', 'rt', ['limit' => 5])->compile()->getCompiled()->CALL SUGGEST('teh', 'rt', 5 AS limit)
FACET Example
Multi Query / Batch Example
Percolate Example (Manticore)
Capability Checks
Result Objects
execute() returns ResultSetInterface:
getStored()fetchAllAssoc()fetchAllNum()fetchAssoc()fetchNum()getAffectedRows()
executeBatch() returns MultiResultSetInterface:
getStored()getNext()
Documentation Map
- Main docs index:
docs/index.rst - Builder guide:
docs/query-builder.rst - Helper guide:
docs/helper.rst - Facets:
docs/features/facet.rst - Multi-query:
docs/features/multi-query-builder.rst - Migration guide:
docs/migrating.rst
Running Tests
This runs the repository test matrix (mysqli + pdo) in Docker.
Contributing
Pull requests are welcome. Please include tests for behavior changes and keep docs in sync with API updates.
All versions of sphinxql-query-builder with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package openregion/sphinxql-query-builder contains the following files
Loading the files please wait ...