ripaclub / zf2-sphinxsearch
ZF2 module for Sphinx Search library
Installs: 7 582
Dependents: 0
Suggesters: 2
Security: 0
Stars: 8
Watchers: 4
Forks: 2
Open Issues: 0
Requires
- php: >=5.5
- ripaclub/sphinxsearch: ~0.8.0
Suggests
- ripaclub/zf2-sphinxsearch-tool: Utility that provides a set of tools to create and handle Sphinx Search configs and sources
This package is not auto-updated.
Last update: 2024-12-21 16:30:59 UTC
README
Zend Framework 2 integration module for Sphinx Search library.
This repository contains a ZF2 module that already provides configuration (details here) for Sphinx Search library.
Installation
Using composer:
Add the following to your composer.json
file:
"require": {
"php": ">=5.5",
"ripaclub/zf2-sphinxsearch": "~0.8.0"
}
Usage
You only need to load this module through your Zend Framework 2 config/application.config.php
file:
return [ // This should be an array of module namespaces used in the application. 'modules' => [ '...', 'SphinxSearch', // Loading current module in your app 'Application', ], // ... ];
And, finally configure the driver connection parameters (for example into your local.config.php
file).
Example:
'sphinxql' => [ 'driver' => 'pdo_mysql', 'hostname' => '127.0.0.1', 'port' => 9306, 'charset' => 'UTF8' ],
Done. Happy querying with Sphinx Search library!