friendsofsymfony/elastica-bundle
Elasticsearch PHP integration for your Symfony project using Elastica
v7.2.0
18M downloads/mo
#1509 most downloaded on Packagist
FriendsOfSymfony/FOSElasticaBundle
What this package is like to depend on
Last release 2 months ago
01 Jun 2026
Ships fairly regularly
a new release about every 6 months
Rarely documented
notes for 10 of 62 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
76 releases · first in 2013
3 releases in the last 12 months
see the full history below
Release timeline
76 releases · Mar 2013 to Jun 2026Releases
latest 60 of 76-
v7.2.001 Jun 2026Release notes
Open source →- Added Elasticsearch 9 and Elastica 9 support.
headersclient config is now applied viaTransport::setHeader()so it works uniformly across Guzzle, Symfony HTTP Client, and elastic-transport's bundled Curl client.timeoutclient config is now translated toCURLOPT_TIMEOUTat runtime when the active transport client is elastic-transport's bundled Curl — Guzzle/Symfony HTTP Client keep consuming the original'timeout'key as before.- Default config no longer injects
'headers' => []/'timeout' => 30intohttp_client_options, which would otherwise break elastic-transport's bundled Curl client (PHP 8+ValueErroron unknowncurl_setopt_arraykeys). - Deprecated the top-level
headersandtimeoutclient config. Move them intoclient_options— for Guzzle/Symfony HTTP Client useheaders/timeout, for the bundled Curl client useCURLOPT_HTTPHEADER/CURLOPT_TIMEOUT. - Fix deprecated Symfony method call.
- Instantiate custom repositories using the DI service locator.
- Add compatibility with
doctrine/doctrine-bundle3.x,doctrine/phpcr-odm3.x and Symfony 8.0 in highest-deps CI. - Raise minimum versions of
doctrine/doctrine-bundle(^2.5),doctrine/orm(^2.17) andjms/serializer-bundle(^5.4) to fix lowest-deps CI.
-
v7.1.024 Apr 2026Release notes
Open source →- Added Symfony 8.0 support.
- Added PHP 8.5 test coverage.
- Dropped Symfony 7.1, 7.2 and 7.3 support.
-
v7.0.020 Oct 2025Release notes
Open source →- Dropped support for PHP 7.4 and PHP 8.0.
- Dropped support for Symfony 5.4.
- [BC break] Method
FOS\ElasticaBundle\Elastica\Client::requestdoes not exist anymore. Please useFOS\ElasticaBundle\Elastica\Client::sendRequest. - [BC break] Method
FOS\ElasticaBundle\Elastica\Client::getIndexnow returnsFOS\ElasticaBundle\Elastica\Index. - [BC break] Arguments for the service
FOS\ElasticaBundle\Elastica\Clienthave changed. See definition ofFOS\ElasticaBundle\Elastica\Client::__construct. - [BC break] Client configuration now reflects configuration of
Elastica\Client. - [BC break] Index template configuration
index_templateoptiontemplateis renamed toindex_patternsand accepts array of strings. - [BC break] Arguments for the service
FOS\ElasticaBundle\Elastica\Client(fos_elastica.client..) are now named, instead of indexed. - [BC break] Configuration options:
host,port,urlare no longer available and replaced with singlehosts. - [BC break] Configuration options:
proxy,auth_type,aws_*,ssl,curl,persistent,compression,connectTimeoutare no longer available. - [BC break] Configuration
connectionStrategyis renamed toconnection_strategy. - [BC break] Event
PostElasticaRequestEventnow operates withPsr\Http\Message\RequestInterfaceinstead ofElastica\Request. - [BC break] Event
ElasticaRequestExceptionEventnow operates withPsr\Http\Message\RequestInterfaceinstead ofElastica\Request, andElastic\Elasticsearch\Exception\ElasticsearchExceptioninstead ofElastica\Exception\ExceptionInterface.
Main change is the configuration of the bundle:
- There are no
connectionslevel anymore. - Options
host,portandurlare replaced with optionhosts, which accepts array. - SSL configuration is provided within
client_configoption. - Other client options are configurable in
client_options. - Refer to new examples! Elastica HTTP client configuration
-
v6.6.015 Mar 2025Release notes
Open source →- Added
PreElasticaRequestEvent,PostElasticaRequestEventandElasticaRequestExceptionEventfor requests. - Made index template configuration compatible with Elasticsearch 6.
- Added
-
v6.5.113 Feb 2025Release notes
Open source →- Replaced deprecated
Symfony\Component\HttpKernel\DependencyInjection\Extension.
- Replaced deprecated
-
v6.5.027 Jan 2025Release notes
Open source →- Added PHP 8.4 support.
- Added
doctrine/orm3 support. - Dropped PHP 8.0 support.
- Dropped Symfony 7.0 support.
- Updated documentation.
-
v6.4.013 May 2024Release notes
Open source →What's Changed
- Pagerfanta v4.x compatibility by @evertharmeling in #1908
- Support Symfony 7 by @evertharmeling in #1938
- Bump from Symfony 6.3 to Symfony 6.4 LTS by @llupa in #1939
- Fix composer.json for doctrine/phpcr-odm:2.0 by @ajgarlag in #1940
- Client: log query on exception then rethrow it by @7ochem in #1920
- Add registerAliasForArgument for Indexes and Finders by @chrishemmings in #1934
- Enable max depth for Symfony serializer too by @trandbert37 in #1935
New Contributors
- @evertharmeling made their first contribution in #1908
- @llupa made their first contribution in #1939
- @7ochem made their first contribution in #1920
- @chrishemmings made their first contribution in #1934
- @trandbert37 made their first contribution in #1935
Full Changelog: v6.3.1...v6.4.0
-
v6.3.128 May 2023 -
v6.3.022 May 2023Release notes
Open source →- Removed Symfony 6.0 and 6.1 support.
- Removed unused count from async persister.
- Added PHP 8.2 support.
- Normalize
DateIntervalto ISO 8601 string in model transformer. - Deprecated
PostAsyncInsertObjectsEvent. - Added missing interfaces to
TransformedFinder. - Fixed console logger behaviour when populating multiple indexes.
- Show filtered object count during populate.
-
v6.2.031 Aug 2022Release notes
Open source →- Improved Symfony 6.1 support.
- Added PHPStan integration.
- Added support for
aws_credential_provider. - Added
BackedEnumsupport inModelToElasticaAutoTransformer. - Fix: don't escape unicode in the query log.
- Fixed index name for aliased index in
CreateCommand.
-
v6.1.016 Jan 2022Nothing published for this version
-
v6.0.013 Oct 2021Nothing published for this version
-
v6.0.0-beta424 May 2021 pre-releaseNothing published for this version
-
v6.0.0-beta328 Sep 2020 pre-releaseNothing published for this version
-
v6.0.0-beta224 Sep 2020 pre-releaseNothing published for this version
-
v6.0.0-beta115 Sep 2020 pre-releaseNothing published for this version
-
v5.2.130 Nov 2020Nothing published for this version
-
v5.2.015 Sep 2020Nothing published for this version
-
v5.1.123 Aug 2019Nothing published for this version
-
v5.1.003 May 2019Nothing published for this version
-
v5.0.307 Feb 2018Nothing published for this version
-
v5.0.203 Jan 2018Nothing published for this version
-
v5.0.119 Dec 2017Nothing published for this version
-
v5.0.018 Dec 2017Nothing published for this version
-
v4.1.203 Jan 2018Nothing published for this version
-
v4.1.120 Dec 2017Nothing published for this version
-
v4.1.018 Dec 2017Nothing published for this version
-
v4.0.110 Aug 2017Nothing published for this version
-
v4.0.030 Mar 2017Nothing published for this version
-
v3.2.410 Aug 2017Nothing published for this version
-
v3.2.330 Mar 2017Nothing published for this version
-
v3.2.226 Jan 2017Nothing published for this version
-
v3.2.104 Oct 2016Nothing published for this version
-
v3.2.004 Aug 2016Nothing published for this version
-
v3.1.807 Jan 2016Nothing published for this version
-
v3.1.708 Dec 2015Nothing published for this version
-
v3.1.617 Sep 2015Nothing published for this version
-
v3.1.504 Aug 2015Nothing published for this version
-
v3.1.427 May 2015Nothing published for this version
-
v3.1.301 Apr 2015Nothing published for this version
-
v3.1.227 Mar 2015Nothing published for this version
-
v3.1.127 Mar 2015Nothing published for this version
-
3.1.017 Mar 2015Nothing published for this version
-
v3.1.0-RC111 Mar 2015 pre-releaseNothing published for this version
-
v3.0.1317 Sep 2015Nothing published for this version
-
v3.0.1231 Aug 2015Nothing published for this version
-
v3.0.1104 Aug 2015Nothing published for this version
-
v3.0.1027 May 2015Nothing published for this version
-
v3.0.912 Mar 2015Nothing published for this version
-
v3.0.831 Jan 2015Nothing published for this version
-
v3.0.721 Jan 2015Nothing published for this version
-
v3.0.604 Jan 2015Nothing published for this version
-
3.0.521 Sep 2014Nothing published for this version
-
v3.0.421 Aug 2014Nothing published for this version
-
v3.0.307 Aug 2014Nothing published for this version
-
v3.0.231 Jul 2014Nothing published for this version
-
v3.0.123 Jul 2014Nothing published for this version
-
v3.0.004 Jul 2014Nothing published for this version
-
v3.0.0-alpha624 Jun 2014 pre-releaseNothing published for this version
-
v3.0.0-alpha523 May 2014 pre-releaseNothing published for this version