ripaclub/zf2-sphinxsearch

ZF2 module for Sphinx Search library

0.8.0 2015-06-22 18:15 UTC

This package is not auto-updated.

Last update: 2024-10-12 15:16:48 UTC


README

Latest Stable Version Total Downloads

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!

Analytics