sineflow / elasticsearch-bundle
Bundle for integrating the official Elasticsearch client with Symfony
Package info
github.com/sineflow/ElasticsearchBundle
Type:symfony-bundle
pkg:composer/sineflow/elasticsearch-bundle
v9.0.0
2026-06-15 11:28 UTC
Requires
- php: ^8.3
- elasticsearch/elasticsearch: ^9.0
- psr/log: ^2.0 || ^3.0
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/console: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher-contracts: ^3.5
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
- symfony/options-resolver: ^6.4 || ^7.0 || ^8.0
- symfony/yaml: ^6.4 || ^7.0 || ^8.0
Requires (Dev)
- dms/phpunit-arraysubset-asserts: ^0.5.0
- doctrine/orm: ^2.6.3 || ^3.0
- friendsofphp/php-cs-fixer: ^3.34
- jchook/phpunit-assert-throws: ^1.0
- knplabs/knp-paginator-bundle: ^4.0 || ^5.0 || ^6.0
- monolog/monolog: ^2.0|^3.0
- php-coveralls/php-coveralls: ^2.1
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.5
- rector/rector: ^2.0
- symfony/dotenv: ^6.4 || ^7.0 || ^8.0
- symfony/translation: ^6.4 || ^7.0 || ^8.0
- twig/twig: ^3.0
Suggests
- doctrine/orm: Allows for using Doctrine as source for rebuilding indices
- knplabs/knp-paginator-bundle: Allows for search results to be paginated
- monolog/monolog: Allows for client-level logging and tracing
This package is auto-updated.
Last update: 2026-06-15 12:59:17 UTC
README
Key points
- Uses the official elasticsearch-php client
- Uses Doctrine-like entity declarations for Elasticsearch documents
- Supports multilanguage documents
- Supports searching in multiple indices
- Supports zero-downtime reindexing by utilizing read and write index aliases
- Supports data providers for synchronizing Elasticsearch indices with an external data source such as Doctrine
Documentation
Installation instructions and documentation of the bundle can be found here.
Version matrix
| ElasticsearchBundle | Elasticsearch | Symfony | PHP |
|---|---|---|---|
| ^9.0 | 9 | 6.4 - 8.x | 8.3+ |
| ^8.2 | 8, 9 | 5.4 - 8.x | 8.1+ |
| ^8.1 | 8 | 5.0+ | 8.1+ |
| ^7.2 | >= 7.0, < 8.0 | 5.0+ | 8.1+ |
| ^7.0 | >= 7.0, < 8.0 | 4.4+ / 5.0+ | 7.3+ / 8.0+ |
| ^6.2 | >= 6.2, < 7.0 | 3.4+ / 4.0+ | 7.3+ |
| ^6.1.0 | >= 6.0, < 6.2 | ||
| ^5.0 | >= 5.0, < 6.0 | ||
| >= 0.9, < 1.0 | >= 2.0, < 5.0 |
License
This bundle is licensed under the MIT license. Please, see the complete license in the LICENSE file.
Running tests
composer install
docker compose up --detach --wait
vendor/bin/phpunit
docker compose down --remove-orphans
Checking and fixing code quality
NOTE: Tests must be run first, so a Symfony container is generated
composer check-code
composer fix-code