This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Installs: 443

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 2


1.0.1 2019-04-02 07:08 UTC



Open a command console and in your project directory execute following command to download latest version of this bundle:

1. Download the Bundle

$ composer require opstalent/elastica-bundle dev-master

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

2. Enable the Bundle

After downloading, enable the bundle by adding the following lines in the app/AppKernel.php file of your project:

// app/AppKernel.php

// ...
class AppKernel extends Kernel
    public function registerBundles()
        $bundles = [
            // ...
            new Opstalent\ElasticaBundle\ElasticaBundle(),

        // ...

3. Modify config of FOSElasticaBundle

To enable serializer for Elasticsearch requests add following to your app/config/config.yml:

# app/config/config.yml

       serializer: 'ops_elastica.serializer'

To enable transformer for Elasticsearch responses add following to your app/config/config.yml:

# app/config/config.yml

    fos_elastica.elastica_to_model_transformer.prototype.orm.class: Opstalent\ElasticaBundle\Transformer\ElasticaToModelTransformer