Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Elasticsearch Bundle

Elasticsearch Bundle Laravel Package

m6web/elasticsearch-bundle

A Symfony bundle that integrates Elasticsearch into your application, providing services, configuration, and tooling to index and query documents through the official Elasticsearch PHP client. It simplifies client setup, connection management, and exposing search capabilities to your Symfony service...

View on GitHub
Deep Wiki
Context7

Symfony2 Bundle on top of elasticsearch/elasticsearch-php

Frequently asked questions about Elasticsearch Bundle
Is m6web/elasticsearch-bundle compatible with Laravel?
No. m6web/elasticsearch-bundle is a Symfony bundle, not a Laravel package; it relies on Symfony's Bundle class, DependencyInjection extension, Configuration tree, and service container wiring. Laravel's container, package discovery, and config system are related but not interchangeable. For Laravel, use the official elasticsearch/elasticsearch client directly or a Laravel-native wrapper instead.
How do I install m6web/elasticsearch-bundle?
Installation is intended for a Symfony application: require the package with Composer, register the bundle in the Symfony kernel or bundles.php, and declare Elasticsearch clients in YAML configuration. Do not treat this as a normal Laravel Composer install, because Laravel will not consume the bundle's Symfony extension and service definitions. Check the package's composer.json for its PHP, Symfony, and elasticsearch/elasticsearch version constraints before installing anywhere.
How do I configure multiple Elasticsearch clients or indexes in Symfony?
The bundle is designed for YAML-based configuration of Elasticsearch connections, so you can declare multiple clients and indexes side by side. It exposes the configured client as injectable services and provides helpers for creating indexes, types, and mappings. That multi-client setup is part of the bundle's Symfony wiring, so it does not transfer directly to a Laravel application.
Does m6web/elasticsearch-bundle support Elasticsearch 8.x?
There is no blanket guarantee from the package description alone; the gating factor is the elasticsearch/elasticsearch PHP client major version pinned by the bundle. The last release was in August 2023, so it may target Elasticsearch 7.x or early 8.x rather than current 8.x behavior. Verify the pinned client version, TLS support, and API-key authentication against your cluster before assuming compatibility.
Which Symfony and PHP versions does this Elasticsearch bundle support?
You must inspect the package's composer.json for its PHP and Symfony version constraints, because the provided context does not list exact supported ranges. A bundle last released in 2023 may not load cleanly on newer Symfony or PHP runtimes without dependency conflicts. Confirm those constraints in a spike before adopting it, especially if your estate is on current Symfony versions.
Is m6web/elasticsearch-bundle actively maintained?
The repository profile is weak for long-term adoption: the last release was 2023-08-08, it shows 22 stars and zero dependents, and maintenance appears to come from a single organization's internal tooling. That does not prove the code is broken, but it is a strong signal of low downstream community exercise. Treat it as potentially archived tooling and plan for version drift risk.
Can I register this Symfony bundle inside a Laravel application?
Registering a Symfony bundle inside Laravel is not a supported integration pattern. Most of the bundle's value is in Symfony kernel, bundle registration, and services.yaml conventions, which Laravel does not provide in the same way. The pragmatic Laravel path is to write a small service provider that binds a singleton Elasticsearch\Client from config/elasticsearch.php.
What does m6web/elasticsearch-bundle add beyond the official Elasticsearch PHP client?
The bundle adds Symfony-specific convenience: YAML configuration for multiple clients and indexes, direct service injection of the Elasticsearch client, helpers for indexes, types, and mappings, a Symfony profiler data collector, and logging and events around requests. The actual Elasticsearch querying is delegated to the official elasticsearch/elasticsearch PHP client. Under Laravel, most of that added behavior is Symfony wiring rather than reusable Elasticsearch functionality.
How should I test Elasticsearch integration in a Laravel app if I do not use this bundle?
Test your own Laravel wrapper around the official elasticsearch/elasticsearch client rather than trying to exercise Symfony bundle wiring. Mock the client for unit tests and run integration tests against a containerized Elasticsearch version that matches production. If you are evaluating the bundle itself, test it inside a Symfony kernel and verify its pinned client version against your target Elasticsearch server.
What are Laravel-friendly alternatives to this Symfony Elasticsearch bundle?
The safest baseline is the official elasticsearch/elasticsearch client plus a small Laravel service provider that builds and binds a singleton client from config. You can also evaluate Laravel Scout drivers or laravel-elasticsearch-style wrappers, but verify their client version support, Elasticsearch 8.x compatibility, TLS, and API-key authentication before committing. Do not adopt m6web/elasticsearch-bundle as a Laravel dependency; use it only as a reference for which client options to expose.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource