friendsofsymfony/elastica-bundle

Elasticsearch PHP integration for your Symfony project using Elastica

Package info

github.com/FriendsOfSymfony/FOSElasticaBundle

Type:symfony-bundle

pkg:composer/friendsofsymfony/elastica-bundle

Statistics

Installs: 17 855 630

Dependents: 55

Suggesters: 8

Stars: 1 262

Open Issues: 71

v7.2.0 2026-06-01 21:22 UTC

Requires

Requires (Dev)

Suggests

  • enqueue/elastica-bundle: For populating Elasticsearch indexes asynchronously and using significanly less resources. Uses Enqueue.
  • symfony/messenger: For populating Elasticsearch indexes asynchronously and using significanly less resources.

Provides

None

Conflicts

Replaces

None

MIT 16ae7e8c0abf6b78e68feb7f9c612a91f8ce0f0d

  • FriendsOfSymfony Community
  • Tim Nagel <tim.woop@nagel.com.au>
  • Richard Miller <richard.miller.woop@limethinking.co.uk>
  • Jeremy Mikola <jmikola.woop@gmail.com>

mongodbsearchdoctrine2elasticaelasticsearch


README

This bundle provides integration with Elasticsearch and Elastica with Symfony. Features include:

  • Integrates the Elastica library into a Symfony environment
  • Use JmsSerializer or Symfony Serializer to convert between PHP objects and Elasticsearch data
  • Index configuration for Elasticsearch, or send data without configuration to use the dynamic mapping feature of Elasticsearch
  • Listeners for Doctrine events for automatic indexing

👁 Build Status
👁 Total Downloads
👁 Latest Stable Version
👁 Scrutinizer Code Quality

Documentation

Documentation for FOSElasticaBundle is in doc/index.md

Installation

Installation instructions can be found in the documentation

Versions & Dependencies

Version 7 of the FOSElasticaBundle is compatible with Elasticsearch 8 and 9. It requires Symfony 6.4 or greater. When using Symfony Flex there is also a recipe to ease the setup. Earlier versions of the FOSElasticaBundle are not maintained anymore and only work with older versions of the dependencies. The following table shows the compatibilities of different versions of the bundle.

FOSElasticaBundle Elastica Elasticsearch Symfony PHP
[7.2] ^8.0 || ^9.0 8.* || 9.* ^6.4|^7.4|^8.0 ^8.1

License

This bundle is released under the MIT license. See the included LICENSE file for more information.