Skip to content

symfonyx/ElasticsearchServiceProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticsearchServiceProvider

Elasticsearch Client Service Provider for Silex PHP framework.

Installation

{
    "require": {
        "symfonyx/elasticsearch-service-provider": "1.x-dev"
    }
}

Usage

use Silex\Application;
use Symfonyx\Silex\ElasticsearchServiceProvider

$app = new Application();
$app['elasticsearch.params'] = [
    'hosts' => [
        'localhost:9200'
    ]
];
$app->register(new ElasticsearchServiceProvider('elasticsearch'));

$app['elasticsearch']->ping();

License

MIT License

About

Elasticsearch service provider for Silex

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages