Download the PHP package m6web/elasticsearch-bundle without Composer
On this page you can find all versions of the php package m6web/elasticsearch-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m6web/elasticsearch-bundle
More information about m6web/elasticsearch-bundle
Files in m6web/elasticsearch-bundle
Package elasticsearch-bundle
Short Description Symfony2 Bundle on top of elasticsearch/elasticsearch-php
License MIT
Informations about the package elasticsearch-bundle
ElasticsearchBundle
Integration of the Elasticsearch official PHP client within a Symfony Project.
Features
This bundle creates one or more Elasticsearch client services from settings defined in the application configuration.
Usage
Installation
You must first add the bundle to your composer.json
:
Then register the bundle in your AppKernel
class:
Configuration
In your config.yml
, you can configure one or more Elasticsearch clients:
From this configuration, the bundle will create two services :
m6web_elasticsearch.client.my_client
that will connect to two Elasticsearch instances:localhost
on port 9200 andother_host
on port 9201m6web_elasticsearch.client.my_other_client
that will connect to one Elasticsearch instances:other_server
on port 9200
It will also create m6web_elasticsearch.client.default
which is an alias for m6web_elasticsearch.client.my_client
Additional configuration
Each client can have additional configuration parameters that will be used to instantiate the \Elasticsearch\Client
. Ex:
Events
The bundle dispatches \M6Web\Bundle\ElasticsearchBundle\EventDispatcher\ElasticsearchEvent
events containing various information about the Elasticsearch requests.
Events are fired with the name m6web.elasticsearch
.
Tests
You can launch the unit tests using:
License
ElasticsearchBundle is licensed under the MIT license.
All versions of elasticsearch-bundle with dependencies
ext-json Version *
elasticsearch/elasticsearch Version ^5.1.0||^6.0.0||^7.0
symfony/event-dispatcher Version ^4.4||^5.0||^6.0
symfony/yaml Version ^4.4||^5.0||^6.0
symfony/http-foundation Version ^4.4||^5.0||^6.0
symfony/config Version ^4.4||^5.0||^6.0
symfony/http-kernel Version ^4.4||^5.0||^6.0
symfony/dependency-injection Version ^4.4||^5.0||^6.0