Download the PHP package javer/sphinx-bundle without Composer

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

FAQ

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.

Example:
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 sphinx-bundle

JaverSphinxBundle

This bundle provides integration of Sphinx search engine with Symfony.

Features:

Requirements

Installation

Install the bundle using composer:

Configuration

Add to your the following options:

Full configuration with default values:

Usage

Synthetic example of SELECT query which returns an array:

Paginate a list of entities fetched from the database using Doctrine ORM QueryBuilder by searching phrase in them using Sphinx:

Sample shpinx.conf for the given example above:

Behat tests

To be able to test search in Behat scenarios there is built-in behat context SphinxContext.

Installation with behat/symfony2-extension

To use it you should add this context in your behat.yml, for example:

Please note that Symfony2Extension Behat extension is required to be able to use this feature.

Installation with friends-of-behat/symfony-extension

Register SphinxDIContext in the container:

and then use it in your behat.yml:

Usage

Then you should add a new step to your scenario:

This step:

Please note that you should explicitly declare all text fields in your indexes in the following form:

It is not necessary when you declare fields for MySQL index in sphinx.conf, but it is needed to be able to convert indexes to real-time.

If you use sqlite as the database engine for running tests you should take into account that not all functions of the MySQL are presented in sqlite, so you should use portable analogs for these functions:

Docker

You can use a docker image to run the daemon in the docker container for the test environment, just add the following configuration option to config/packages/test/javer_sphinx.yaml:


All versions of sphinx-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-pcntl Version *
ext-pdo Version *
ext-posix Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package javer/sphinx-bundle contains the following files

Loading the files please wait ....