PHPackages                             bangpound/elasticsearch-bundle - 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. bangpound/elasticsearch-bundle

Abandoned → [caxy/elasticsearch-bundle](/?search=caxy%2Felasticsearch-bundle)Symfony-bundle[Search &amp; Filtering](/categories/search)

bangpound/elasticsearch-bundle
==============================

Symfony Elasticsearch Bundle

0.0.1(12y ago)016MITPHPPHP &gt;=5.3.2

Since Oct 30Pushed 10y ago23 watchersCompare

[ Source](https://github.com/bangpound/elasticsearch-bundle)[ Packagist](https://packagist.org/packages/bangpound/elasticsearch-bundle)[ Docs](https://github.com/ushios/elasticsearch-bundle)[ RSS](/packages/bangpound-elasticsearch-bundle/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

elasticsearch-bundle
====================

[](#elasticsearch-bundle)

Create [Elasticsearch](http://www.elasticsearch.org/) client using 'config.yml'

---

Installation
============

[](#installation)

### composer.json

[](#composerjson)

```
# composer.json

"require": {
	"caxy/elasticsearch-bundle": "0.0.*"
	...
}

```

and run `composer update` command.

### AppKernel.php

[](#appkernelphp)

```
# app/AppKernel.php

public function registerBundles()
{
    bundles = array(
        // ...
        new Caxy\Bundle\ElasticsearchBundle\CaxyElasticsearchBundle(),
    );

    retrun bundles();
}

```

Configuration
=============

[](#configuration)

config.yml

```
# app/config/config.php

caxy_elasticsearch:
    client:
        default:
            hosts: [ "localhost" ] # Require
        named:
            class: Your\Elasticsearch\Client
            hosts: [ "localhost", "127.0.0.1","localhost:9200", "127.0.0.1:9201" ]
            log_path: elasticsearch.log # Optional
            log_level: Logger::WARNING # Optional

```

Defaults
--------

[](#defaults)

@see [Elasticsearch PHP API -full list of configrations-](http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_configuration.html#_full_list_of_configurations)

Usage
=====

[](#usage)

Get client from service.
------------------------

[](#get-client-from-service)

Using default settings Elasticsearch client.

```
# Bundle/Controller/Controller.php

public function fooAction()
{
    $es = $this->container->get('caxy_elasticsearch_client');
    // or
    $es = $this->container->get('caxy_elasticsearch_client.default');
}

```

Using named settings.

```
# Bundle/Controller/Controller.php

public function fooAction()
{
    $es = $this->container->get('caxy_elasticsearch_client.named');
    get_class($es); // Your\Elasticsearch\Client
}

```

Client
------

[](#client)

@see [elasticsearch/elasticsearch web site](https://github.com/elasticsearch/elasticsearch-php) or [Documentation](http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/index.html)

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.3% 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

4527d ago

### Community

Maintainers

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

---

Top Contributors

[![bangpound](https://avatars.githubusercontent.com/u/6731?v=4)](https://github.com/bangpound "bangpound (21 commits)")[![ushios](https://avatars.githubusercontent.com/u/679666?v=4)](https://github.com/ushios "ushios (2 commits)")

---

Tags

elasticsearch

### Embed Badge

![Health badge](/badges/bangpound-elasticsearch-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bangpound-elasticsearch-bundle/health.svg)](https://phpackages.com/packages/bangpound-elasticsearch-bundle)
```

###  Alternatives

[matchish/laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout

7421.6M1](/packages/matchish-laravel-scout-elasticsearch)[mailerlite/laravel-elasticsearch

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

934507.9k2](/packages/mailerlite-laravel-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

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

Support for using IAM authentication with the official Elasticsearch PHP client

9210.4M13](/packages/jsq-amazon-es-php)[basemkhirat/elasticsearch

Laravel, Lumen and Native php elasticseach query builder to build complex queries using an elegant syntax

410311.3k](/packages/basemkhirat-elasticsearch)[babenkoivan/elastic-client

The official PHP Elasticsearch client integrated with Laravel

543.9M5](/packages/babenkoivan-elastic-client)

PHPackages © 2026

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