onlinesid / silex-sphinx-provider
Silex service provider for Sphinx search engine
v0.1.0
2016-03-09 06:58 UTC
Requires
- php: >=5.4.0
- nilportugues/sphinx-search: ~1.0
- silex/silex: ~1.3
This package is auto-updated.
Last update: 2024-12-20 12:42:12 UTC
README
Silex service provider for Sphinx search engine (PHP)
Installation
Library
$ git clone https://github.com/onlinesid/silex-sphinx-provider.git
Dependencies
Composer
(will use the Composer ClassLoader)
$ wget http://getcomposer.org/composer.phar
$ php composer.phar require onlinesid/silex-sphinx-provider:dev-master
Usage
Registering the Service Provider
$app->register(new OnlineSid\Silex\Provider\Search\SphinxServiceProvider(), array( 'sphinx_options' => array('host' => '127.0.0.1', 'port' => '9312'), ));
Usage in controller
/** @var $sphinxSearch \NilPortugues\Sphinx\SphinxClient */ $sphinxSearch = $this->app['sphinx_client'];