basster / cilex-elastica
A Cilex Service Provider for Elastica
1.0
2015-10-01 14:59 UTC
Requires
- cilex/cilex: ^1.1
- ruflin/elastica: ^2.1
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2024-10-22 06:02:46 UTC
README
This is a service provider for Cilex which makes access to Elasticsearch available through Elastica.
This library is a Cilex adaptation of easybib/silex-elastica.
Getting Started
Set up the dependency on this package using Composer. Once you have a Silex application skeleton you can register the service provider and set Elastica options:
$app->register(new Basster\Cilex\Elastica\Provider\ElasticaProvider(), [ 'elastica.client_options' => [ 'host' => 'localhost', 'port' => 9200, ], ]);
The full set of options is available on the Elastica documentation.
License
The code is available under the MIT license.