Download the PHP package foolz/sphinxql-query-builder without Composer

On this page you can find all versions of the php package foolz/sphinxql-query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.


After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sphinxql-query-builder

Query Builder for SphinxQL

Build Status Latest Stable Version Latest Unstable Version Total Downloads


This is a SphinxQL Query Builder used to work with SphinxQL, a SQL dialect used with the Sphinx search engine and it's fork Manticore. It maps most of the functions listed in the SphinxQL reference and is generally faster than the available Sphinx API.

This Query Builder has no dependencies except PHP 7.1 or later, \MySQLi extension, PDO, and Sphinx/Manticore.

Missing methods?

SphinxQL evolves very fast.

Most of the new functions are static one liners like SHOW PLUGINS. We'll avoid trying to keep up with these methods, as they are easy to just call directly ((new SphinxQL($conn))->query($sql)->execute()). You're free to submit pull requests to support these methods.

If any feature is unreachable through this library, open a new issue or send a pull request.

Code Quality

The majority of the methods in the package have been unit tested.

The only methods that have not been fully tested are the Helpers, which are mostly simple shorthands for SQL strings.

How to Contribute

Pull Requests

  1. Fork the SphinxQL Query Builder repository
  2. Create a new branch for each feature or improvement
  3. Submit a pull request from each branch to the master branch

It is very important to separate new features or improvements into separate feature branches, and to send a pull request for each branch. This allows me to review and pull in new features or improvements individually.

Style Guide

All pull requests must adhere to the PSR-2 standard.

Unit Testing

All pull requests must be accompanied by passing unit tests and complete code coverage. The SphinxQL Query Builder uses phpunit for testing.

Learn about PHPUnit


This is a Composer package. You can install this package with the following command: composer require foolz/sphinxql-query-builder


The following examples will omit the namespace.


We support the following database connection drivers:


More methods are available in the Connection class, but usually not necessary as these are handled automatically.


Bypass Query Escaping

Often, you would need to call and run SQL functions that shouldn't be escaped in the query. You can bypass the query escape by wrapping the query in an \Expression.

Query Escaping

There are cases when an input must be escaped in the SQL statement. The following functions are used to handle any escaping required for the query.



This will return an INT with the number of rows affected.


This will return an INT with the number of rows affected.


Will return an array with an INT as first member, the number of rows deleted.





Executing and Compiling


$result will contain ResultSet object containing the results of the next enqueued query.

Query results


Contains the results of the query execution.


Contains the results of the multi-query execution.


The Helper class contains useful methods that don't need "query building".

Remember to ->execute() to get a result.

The following methods return a prepared SphinxQL object. You can also use ->enqueue($next_object):


The Percolate class provides methods for the "Percolate query" feature of Manticore Search. For more information about percolate queries refer the Percolate Query documentation.


The Percolate class provide a dedicated helper for inserting queries in a percolate index.


Searches for stored queries that provide matching for input documents.


Laravel's dependency injection and realtime facades brings more convenience to SphinxQL Query Builder usage.

Facade access also works with Helper and Percolate.

All versions of sphinxql-query-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8

The package foolz/sphinxql-query-builder contains the following files

Loading the files please wait ....