PHPackages                             xmarcos/elasticsearch-service-provider - 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. [Search &amp; Filtering](/categories/search)
4. /
5. xmarcos/elasticsearch-service-provider

ActiveLibrary[Search &amp; Filtering](/categories/search)

xmarcos/elasticsearch-service-provider
======================================

A Silex Service Provider for Elasticsearch

0.1.0(11y ago)811.7k7[1 issues](https://github.com/xmarcos/ElasticsearchServiceProvider/issues)MITPHP

Since Dec 28Pushed 3y agoCompare

[ Source](https://github.com/xmarcos/ElasticsearchServiceProvider)[ Packagist](https://packagist.org/packages/xmarcos/elasticsearch-service-provider)[ RSS](/packages/xmarcos-elasticsearch-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

ElasticsearchServiceProvider
============================

[](#elasticsearchserviceprovider)

[![Build Status](https://camo.githubusercontent.com/af1e7e3694590ac69bef409ac5774dd9e0a348d483f379cc6381027252a6a021/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f786d6172636f732f456c61737469637365617263685365727669636550726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/xmarcos/ElasticsearchServiceProvider)[![Coverage Status](https://camo.githubusercontent.com/fe2eba3d7dfd586494b0940c6a27c948a235434fbc7219e3383980a2a02c6358/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f786d6172636f732f456c61737469637365617263685365727669636550726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/xmarcos/ElasticsearchServiceProvider/code-structure)[![Quality Score](https://camo.githubusercontent.com/0374900be1cf0c2f588254bb8510f3ddaae16bb2e8a2d3eca2484ece187bb447/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f786d6172636f732f456c61737469637365617263685365727669636550726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/xmarcos/ElasticsearchServiceProvider)[![Latest Version](https://camo.githubusercontent.com/bff289b35e56736fa177d3d3c18fee6c9f37be0a9e025bf381fe62da3f9b8157/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f786d6172636f732f656c61737469637365617263682d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xmarcos/elasticsearch-service-provider)[![Software License](https://camo.githubusercontent.com/2f34e6b773b0ecce55fc7ec7062a9e282d1144c8fd29fd3e5348fd0050ea6ddd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f786d6172636f732f656c61737469637365617263682d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/3b88e62cc5f0f058edb85ca9d5a9c12c70de36425d10457b88aae4b95c442331/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f786d6172636f732f656c61737469637365617263682d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xmarcos/elasticsearch-service-provider)[![SensioLabsInsight](https://camo.githubusercontent.com/2d596c1fd7c9e6aaeea2c90192b2dd9301e45949f0bb007b1f8e02b5c594322b/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63333266316132652d626432332d343166382d383933332d3034393736653435346264372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/c32f1a2e-bd23-41f8-8933-04976e454bd7)

A [Silex](https://github.com/silexphp/Silex) Service Provider for the official [Elasticsearch Client](https://github.com/elasticsearch/elasticsearch-php).

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

[](#installation)

```
{
    "require": {
        "xmarcos/elasticsearch-service-provider": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
use Silex\Application;
use xmarcos\Silex\ElasticsearchServiceProvider

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

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

License
-------

[](#license)

MIT License

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8eedf0db3a38d9f69525612acd4a4c9331f422ce13cb5edf3104f47fadb3221?d=identicon)[xmarcos](/maintainers/xmarcos)

---

Top Contributors

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

---

Tags

elasticsearchphpsilexsearchelasticsearchsilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xmarcos-elasticsearch-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/xmarcos-elasticsearch-service-provider/health.svg)](https://phpackages.com/packages/xmarcos-elasticsearch-service-provider)
```

###  Alternatives

[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[matchish/laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout

7431.6M2](/packages/matchish-laravel-scout-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[jsq/amazon-es-php

Support for using IAM authentication with the official Elasticsearch PHP client

9310.6M13](/packages/jsq-amazon-es-php)[heyday/silverstripe-elastica

Provides Elastic Search integration for SilverStripe DataObjects using Elastica

1136.8k2](/packages/heyday-silverstripe-elastica)[blomstra/search

Replaces Flarum search with one powered by an elastic search server.

114.9k](/packages/blomstra-search)

PHPackages © 2026

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