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.
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.
The code is available under the MIT license.