symfonyx / elasticsearch-service-provider
Elasticsearch service provider for Silex
Installs: 2 169
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: ^7.0
- elasticsearch/elasticsearch: ~5.0
- silex/silex: ~2.0
This package is auto-updated.
Last update: 2025-01-09 22:09:54 UTC
README
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