xmarcos / elasticsearch-service-provider
A Silex Service Provider for Elasticsearch
Installs: 11 701
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 8
Open Issues: 1
Requires
- elasticsearch/elasticsearch: ~1.0
- silex/silex: ~1.1
Requires (Dev)
- fabpot/php-cs-fixer: @stable
- phpunit/phpunit: @stable
This package is not auto-updated.
Last update: 2024-12-17 05:27:27 UTC
README
A Silex Service Provider for the official Elasticsearch Client.
Installation
{ "require": { "xmarcos/elasticsearch-service-provider": "dev-master" } }
Usage
use Silex\Application; use xmarcos\Silex\ElasticsearchServiceProvider $app = new Application(); $app->register(new ElasticsearchServiceProvider(), [ 'elasticsearch.params' => [ 'hosts' => [ '127.0.0.1:9200' ], 'logging' => false ] ]); $app['elasticsearch']->ping();
License
MIT License