easybib/silex-elastica

A Silex Service Provider for Elastica

Installs: 857

Dependents: 0

Stars: 5

Watchers: 1

Forks: 4

Language: PHP

0.1.1 2014-01-29 16:39 UTC

README

This is a service provider for Silex which makes access to Elasticsearch available through 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 EasyBib\Service\Elastica\ElasticaServiceProvider(), array(
    'elastica.client_options' => array(
        'host' => 'localhost',
        'port' => 9200,
    ),
));

The full set of options is available on the Elastica documentation.

Dependencies

  • PHP >= 5.3.2
  • Elastica >= 0.90.2

Copyright

Imagine Easy Solutions, LLC

Author

License

The code is available under the 2 Clause BSD license.