Skip to content

prigornitskiy/elasticsearch-service-provider

 
 

Repository files navigation

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

About

A Silex Service Provider for Elasticsearch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%