xmarcos/elasticsearch-service-provider

A Silex Service Provider for Elasticsearch

0.1.0 2014-12-28 00:29 UTC

This package is not auto-updated.

Last update: 2024-11-05 04:46:35 UTC


README

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

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