PHPackages                             gbprod/elastica-extra-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. gbprod/elastica-extra-bundle

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

gbprod/elastica-extra-bundle
============================

Bundle providing extra elastica tools for managing indices and types settings

v1.1.0(8y ago)16.7k[5 issues](https://github.com/gbprod/elastica-extra-bundle/issues)MITPHPPHP &gt;=5.6

Since Apr 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/gbprod/elastica-extra-bundle)[ Packagist](https://packagist.org/packages/gbprod/elastica-extra-bundle)[ RSS](/packages/gbprod-elastica-extra-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (0)

ElasticaExtraBundle
===================

[](#elasticaextrabundle)

[![Build Status](https://camo.githubusercontent.com/7b381dbd0e3b305bab2f918a1218ddc884d2bea470a8a00d618337856a574020/68747470733a2f2f7472617669732d63692e6f72672f676270726f642f656c6173746963612d65787472612d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gbprod/elastica-extra-bundle)[![codecov](https://camo.githubusercontent.com/f86468d235cc92a6073fd746ff87e983ec7eb49b94b2d4b8635f16192a65b2f6/68747470733a2f2f636f6465636f762e696f2f67682f676270726f642f656c6173746963612d65787472612d62756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/gbprod/elastica-extra-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c10798cba3e09a1f58025d7abdd46069f478588c6ec227e78a003543ce3d8a02/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676270726f642f656c6173746963612d65787472612d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gbprod/elastica-extra-bundle/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/b9c2a9173c04a93e798b93dacd2d1685409f42371ff3786962b1d4577e4e38b8/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537346139636132636538643065303034353035666134362f62616467652e737667)](https://www.versioneye.com/user/projects/574a9ca2ce8d0e004505fa46)

[![Latest Stable Version](https://camo.githubusercontent.com/19b69dd613bd1f803d714a90a144ed2fd11824bcf37115a15b0a9d2113531d0a/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d65787472612d62756e646c652f762f737461626c65)](https://packagist.org/packages/gbprod/elastica-extra-bundle)[![Total Downloads](https://camo.githubusercontent.com/8ca15f7aef6c927a427a94bedd90b02a4a6e0b45599e114eaaf13704ce628105/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d65787472612d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/gbprod/elastica-extra-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/c501430dc713c963b99617ab76f3f8a02403d7fb1bd80bc9e75ef35bbb9ed1bd/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d65787472612d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/gbprod/elastica-extra-bundle)[![License](https://camo.githubusercontent.com/0de6cc66e480db82e20abbcd78ba3cb6df01701f7f968a6f48cc85dfaf78b2d6/68747470733a2f2f706f7365722e707567782e6f72672f676270726f642f656c6173746963612d65787472612d62756e646c652f6c6963656e7365)](https://packagist.org/packages/gbprod/elastica-extra-bundle)

Bundle providing extra elastica tools for managing indices and types settings.

With this bundle you can :

- Manage index settings and mappings in yaml
- Create and delete index
- Manage indices' aliases
- Reindex

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

[](#installation)

With composer :

```
composer require gbprod/elastica-extra-bundle
```

Update your `app/AppKernel.php` file:

```
public function registerBundles()
{
    $bundles = array(
        new GBProd\ElasticaExtraBundle\ElasticaExtraBundle(),
    );
}
```

Configure Elastica client
-------------------------

[](#configure-elastica-client)

```
gbprod_elastica_extra:
    default_client: 'elastica.default_client' # Elastica client service's name
```

You can create Elastica client using a bundle like:

- [FOSElasticaBundle](https://github.com/FriendsOfSymfony/FOSElasticaBundle)Service name will look like `fos_elastica.client.my_client`
- My lightweight bundle [ElasticaBundle](https://github.com/gbprod/elastica-bundle)Service name will look like `elastica.default_client`
- DIY

Index Management Operations
---------------------------

[](#index-management-operations)

### Configuration

[](#configuration)

Set indices setup

```
elastica_extra:
    default_client: 'elastica.default_client'
    indices:
        my_index:
            settings:
                number_of_shards: 3
                number_of_replicas: 2
            mappings:
                my_type:
                    _source:
                        enabled: true
                    properties:
                        first_name:
                            type: string
                            analyzer: standard
                        age:
                            type: integer
        my_index_2: ~
```

### Create index

[](#create-index)

Will create index using his configuration.

```
php app/console elasticsearch:index:create my_index
```

Will create index using another index configuration (usefull when using aliases)

```
php app/console elasticsearch:index:create my_versionned_index --alias=my_index
```

### Delete index

[](#delete-index)

```
php app/console elasticsearch:index:delete my_index --force
```

### Put index settings

[](#put-index-settings)

```
php app/console elasticsearch:index:put_settings my_index
```

Will put index settings using another index configuration (usefull when using aliases)

```
php app/console elasticsearch:index:put_settings my_versionned_index --alias=my_index
```

### Put index mappings

[](#put-index-mappings)

```
php app/console elasticsearch:index:put_mappings my_index my_type
```

Will put index mappings using another index configuration (usefull when using aliases)

```
php app/console elasticsearch:index:put_mappings my_versionned_index my_type --alias=my_index
```

Aliases Management Operations
-----------------------------

[](#aliases-management-operations)

### List aliases for an index

[](#list-aliases-for-an-index)

```
php app/console elasticsearch:alias:list my_index
```

### Add alias for an index

[](#add-alias-for-an-index)

```
php app/console elasticsearch:alias:add my_index my_alias
```

If `--replace` options is set, an existing alias will be replaced

```
php app/console elasticsearch:alias:add my_index my_alias --replace
```

### Remove alias for an index

[](#remove-alias-for-an-index)

```
php app/console elasticsearch:alias:remove my_index my_alias
```

### List indices

[](#list-indices)

This command list indices

```
php app/console elasticsearch:index:list
```

You also can filter displayed indices using regex

```
php app/console elasticsearch:index:list --pattern="user*"
```

### Reindex

[](#reindex)

This command reindex using [reindex api](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html)

```
php app/console elasticsearch:reindex [old-index] [new-index]
```

### Use a different client

[](#use-a-different-client)

For all commands you can specify a different client using `--client` option.

eg:

```
php app/console elasticsearch:index:create my_index --client=my_client_service
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

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

Every ~64 days

Recently: every ~108 days

Total

11

Last Release

3027d ago

Major Versions

v0.4.0 → v1.0-beta.02016-12-28

PHP version history (2 changes)v0.1-beta.0PHP &gt;=5.5

v1.0-beta.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/841b899d90de45fe2d70ae8efa1c505f53f276bdb3c5968194f1ab87b4c854c5?d=identicon)[gbprod](/maintainers/gbprod)

---

Top Contributors

[![gbprod](https://avatars.githubusercontent.com/u/3751019?v=4)](https://github.com/gbprod "gbprod (32 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gbprod-elastica-extra-bundle/health.svg)

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

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M190](/packages/simplesamlphp-simplesamlphp)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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