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.

phlexible elastica bundle

Installs: 387

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0


1.3.0 2017-08-16 12:27 UTC

This package is auto-updated.

Last update: 2021-09-08 00:28:23 UTC


The PhlexibleElasticaBundle adds support for elasticsearch indexes in phlexible.


  1. Download PhlexibleElasticaBundle using composer
  2. Enable the Bundle
  3. Configure the PhlexibleElasticaBundle
  4. Clear the symfony cache

Step 1: Download PhlexibleElasticaBundle using composer

Add PhlexibleElasticaBundle by running the command:

$ php composer.phar require phlexible/elastica-bundle "~1.0.0"

Composer will install the bundle to your project's vendor/phlexible directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new Phlexible\Bundle\ElasticaBundle\PhlexibleElasticaBundle(),

Step 3: Configure the PhlexibleElasticaBundle

Now that the bundle is enabled, you need to configure the PhlexibleElasticaBundle. Add the following configuration to your config.yaml file.

# app/config/config.yaml
            host: your_elasticsearch_host
            port: 9200
            logger: logger
            index_name: your_index_name

Step 4: Clear the symfony cache

If you access your phlexible application with environment prod, clear the cache:

$ php app/console cache:clear --env=prod