Cross-framework module for ruflin/Elastica

dev-master 2016-11-12 09:14 UTC


stability-wip stability-experimental

Build Status codecov Scrutinizer Code Quality

Latest Stable Version Total Downloads Latest Unstable Version License

This package integrates Elastica in any container-interop compatible framework/container.


composer require gbprod/elastica-universal-module

Once installed, you need to register the GBProd\ElasticaServiceProvider into your container.


This service provider is meant to create an Elasticsearch client using Elastica.

This service provider accepts an optional parameter in the constructor: a "suffix" that can be used if you want many different instances.

Expected values / services

This service provider expects the following configuration / services to be available:

Name Compulsory Description
Elastica\Client[.suffix].host yes Elasticsearch host
Elastica\Client[.suffix].port yes Elasticsearch port

Provided services

This service provider provides the following services:

Service name Description
Elastica\Client[.suffix] Elastica client