Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.89 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.89 KB

ElasticsearchServiceProvider

Build Status Coverage Status Quality Score Latest Version Software License Total Downloads SensioLabsInsight

A Silex Service Provider for the official Elasticsearch Client.

Installation

{
    "require": {
        "prigornitskiy/elasticsearch-service-provider": "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