basster/cilex-elastica

A Cilex Service Provider for Elastica

1.0 2015-10-01 14:59 UTC

This package is auto-updated.

Last update: 2024-03-22 04:53:12 UTC


README

Build Status SensioLabsInsight

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.