PHPackages                             gbprod/elastica-universal-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gbprod/elastica-universal-module

AbandonedArchivedLibrary[API Development](/categories/api)

gbprod/elastica-universal-module
================================

Cross-framework module for ruflin/Elastica

07PHP

Since Nov 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gbprod/elastica-universal-module)[ Packagist](https://packagist.org/packages/gbprod/elastica-universal-module)[ RSS](/packages/gbprod-elastica-universal-module/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Elastica universal module
=========================

[](#elastica-universal-module)

[![stability-wip](https://camo.githubusercontent.com/96d2a4b49a0fdba0b4bb9a95833c29804125c6370ccb931f32d67f41d666f8cd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d776f726b5f696e5f70726f67726573732d6c69676874677265792e737667)](https://camo.githubusercontent.com/96d2a4b49a0fdba0b4bb9a95833c29804125c6370ccb931f32d67f41d666f8cd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d776f726b5f696e5f70726f67726573732d6c69676874677265792e737667)[![stability-experimental](https://camo.githubusercontent.com/0daa00e91aa931aeb2d321edc5a2ce6fe8fb4037fc35c084c4a01cde1621ac98/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d6578706572696d656e74616c2d6f72616e67652e737667)](https://camo.githubusercontent.com/0daa00e91aa931aeb2d321edc5a2ce6fe8fb4037fc35c084c4a01cde1621ac98/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d6578706572696d656e74616c2d6f72616e67652e737667)

[![Build Status](https://camo.githubusercontent.com/02d314a1cf7ec3eb46c2097c33c0ba77c15d766f1954118135f6863dcc1b2852/68747470733a2f2f7472617669732d63692e6f72672f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gbprod/elastica-universal-module)[![codecov](https://camo.githubusercontent.com/f51eb88343714675ec48b52ba9f6081b296dbed7efe6c57c81bf0e2b2dd8d896/68747470733a2f2f636f6465636f762e696f2f67682f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/gbprod/elastica-universal-module)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b905ba568a408c77fe07383818fe42fb40c92eeab3b6cd3e7cdd72073f5cb33/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gbprod/elastica-universal-module/?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/ef45224e3421bf158c402270950a47e3913fb81442024e128cdf3401a57dae5a/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652f762f737461626c65)](https://packagist.org/packages/gbprod/elastica-universal-module)[![Total Downloads](https://camo.githubusercontent.com/6f478adb5215dd08509437d9ba0c62700e12d6e613cefc4dd4351a00f3cb0d6b/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652f646f776e6c6f616473)](https://packagist.org/packages/gbprod/elastica-universal-module)[![Latest Unstable Version](https://camo.githubusercontent.com/9f728bedb00e43ab4d930df0ffe4e2ca487623d560759ed8d3025ee5754621ab/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652f762f756e737461626c65)](https://packagist.org/packages/gbprod/elastica-universal-module)[![License](https://camo.githubusercontent.com/86e4e5d6381991945666bc7badd926fc948a96a5798a56504c0d64f5f7c244b4/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d756e6976657273616c2d6d6f64756c652f6c6963656e7365)](https://packagist.org/packages/gbprod/elastica-universal-module)

This package integrates [Elastica](https://github.com/ruflin/Elastica) in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

Installation
------------

[](#installation)

```
composer require gbprod/elastica-universal-module

```

Once installed, you need to register the [`GBProd\ElasticaServiceProvider`](src/ElasticaServiceProvider.php) into your container.

Introduction
------------

[](#introduction)

This service provider is meant to create an [Elasticsearch](https://www.elastic.co/fr/products/elasticsearch) client using [Elastica](https://github.com/ruflin/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
--------------------------

[](#expected-values--services)

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

NameCompulsoryDescription`Elastica\Client[.suffix].host`*yes*Elasticsearch host`Elastica\Client[.suffix].port`*yes*Elasticsearch portProvided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`Elastica\Client[.suffix]`Elastica client

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3751019?v=4)[gbprod](/maintainers/gbprod)[@gbprod](https://github.com/gbprod)

---

Top Contributors

[![gbprod](https://avatars.githubusercontent.com/u/3751019?v=4)](https://github.com/gbprod "gbprod (4 commits)")

### Embed Badge

![Health badge](/badges/gbprod-elastica-universal-module/health.svg)

```
[![Health](https://phpackages.com/badges/gbprod-elastica-universal-module/health.svg)](https://phpackages.com/packages/gbprod-elastica-universal-module)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
