joacub / zf2-sphinxsearch
ZF2 integration module for Sphinx Search library
0.7.0
2014-10-28 13:39 UTC
Requires
- php: >=5.3.3
- ripaclub/sphinxsearch: ~0.7.0
This package is not auto-updated.
Last update: 2024-12-11 08:43:15 UTC
README
ZF2 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.3.3",
"ripaclub/sphinxsearch": "0.7.0"
}
Usage
In order to use this module you need to load it through your ZF2 app 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', ], // ... ];
Finally configure the driver connection parameters (for example into your local.config.php
file).
Example:
'sphinxql' => array( 'driver' => 'pdo_mysql', 'hostname' => '127.0.0.1', 'port' => 9306, 'charset' => 'UTF8' )