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
Elastica Bundle

Elastica Bundle Laravel Package

fos-gregooz/elastica-bundle

Symfony bundle that integrates Elasticsearch via the Elastica client, letting you define indexes and mappings in configuration and keep them in sync with Doctrine entities through automatic listeners. Provides repository services so you can run search queries without touching the low-level client.

View on GitHub
Deep Wiki
Context7

Elasticsearch PHP integration for your Symfony project using Elastica.

Frequently asked questions about Elastica Bundle
Can I use fos-gregooz/elastica-bundle in a Laravel application?
No. fos-gregooz/elastica-bundle is a Symfony bundle with a Bundle subclass, DI extension, console commands, and Doctrine event subscribers. Laravel has no service provider, facade, config publishing, or container wiring for it, and running it would mean bootstrapping Symfony's DI compiler passes inside a Laravel kernel. For Laravel, use Laravel Scout with an Elasticsearch engine or the official elasticsearch/elasticsearch client behind a thin owned indexer.
What is fos-gregooz/elastica-bundle used for?
It integrates the Elastica PHP client with Symfony so you can define Elasticsearch clients, indexes, and types in YAML configuration. It provides service-based access to indexes and types, Doctrine integration for automatic index population, and simplified search and query handling. It is intended for Symfony projects needing structured Elasticsearch access, not for Laravel applications.
How do I install fos-gregooz/elastica-bundle?
Install it with Composer using composer require fos-gregooz/elastica-bundle. In Symfony, enable the bundle in your kernel and configure clients, indexes, and mappings in YAML. You also need a compatible Elastica release and an Elasticsearch cluster. There is no Laravel installation path because the package has no Laravel service provider or config publishing.
Does fos-gregooz/elastica-bundle support Laravel 10 or Laravel 11?
No. It is a Symfony bundle and has no Laravel service provider, facade, config publishing, or container wiring. Laravel 10 and Laravel 11 teams should use Laravel Scout with a community Elasticsearch engine or the official elasticsearch/elasticsearch client instead.
What Elasticsearch versions does fos-gregooz/elastica-bundle support?
Support is indirect because the bundle sits on Elastica, which wraps the official Elasticsearch client. Elastica trails official client support for newer Elasticsearch majors, including ES 8 TLS and auth defaults and the ES 7 removal of mapping types. Your supported Elasticsearch versions are constrained by the pinned Elastica release, so check that release's compatibility matrix before planning a cluster upgrade.
Is fos-gregooz/elastica-bundle maintained and safe for production?
Treat it as high risk for production. It is a personal-namespace fork with 0 stars and 0 dependents, no documented diff against upstream, and no CVE response path. For Symfony production use, prefer upstream friendsofsymfony/elastica-bundle pinned to a release tag, and vendor any required patch into a repository you control. For Laravel, use Scout or the official client.
What are alternatives to fos-gregooz/elastica-bundle for Laravel?
For Laravel, use Laravel Scout with a community Elasticsearch engine if you want model-driven sync, or the official elasticsearch/elasticsearch client behind a thin indexer service with queued jobs if you need query control. Both are documented and maintained. Do not try to recreate the bundle's DI-configured mappings, populate commands, or Doctrine subscribers in Laravel.
Can fos-gregooz/elastica-bundle automatically sync Doctrine entities to Elasticsearch?
Yes, in Symfony it provides Doctrine integration for automatic index population through event subscribers and a fos:elastica:populate console command. That integration is built around Symfony's Doctrine bridge and bundle console commands. Laravel's Eloquent has no equivalent here; for Laravel, use queued jobs with Scout or your own indexer service.
How do I test fos-gregooz/elastica-bundle in a Laravel project?
You cannot meaningfully test it as a Laravel package because it has no Laravel integration to boot. Testing it would require standing up Symfony DI and the bundle kernel inside your test suite. For Laravel search, test Scout or the official client with mocked HTTP responses or a disposable Elasticsearch container instead.
Should I use fos-gregooz/elastica-bundle or friendsofsymfony/elastica-bundle?
For Symfony, use upstream friendsofsymfony/elastica-bundle pinned to a release tag. This fork has no published diff, so you cannot distinguish stock behavior from bespoke patches, and every upstream merge becomes manual conflict resolution in your index-population path. Only consider the fork if it carries a required unpublished patch, and then vendor that patch into a repository you control. For Laravel, use neither; choose Scout or the official client.
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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package