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

Ongr Elasticsearch Bundle Laravel Package

stexaz/ongr-elasticsearch-bundle

A Symfony bundle for integrating Elasticsearch with ONGR, providing document mapping, index management, repositories, and search tooling for scalable full-text search and filtering in PHP apps. It streamlines configuration and query building while keeping Elasticsearch usage idiomatic in Symfony.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. Despite the framing as a Laravel/PHP package, this is a Symfony bundle, not a Laravel package. It targets Symfony's dependency injection container, bundle configuration, and event dispatcher — none of which Laravel's service container or package discovery mechanism consume natively. Adopting it in a Laravel codebase would require bridging two incompatible DI paradigms (or extracting the underlying ONGR/ElasticsearchBundle components and rewiring them), which is non-trivial and immediately forfeits any upstream support. It is also a fork-of-a-fork (stexaz → andriuspetrauskis → upstream ONGR), meaning the published artifact is at best a maintenance branch of code that itself has been superseded.

Integration feasibility. Low. There is no composer require path to a working Laravel install; the bundle's service definitions expect Symfony\Component\DependencyInjection and Symfony kernel lifecycle hooks. Even in a Symfony application the fit is poor: the bundle's supported matrix (roughly Symfony 2.8–4.x, PHP 7.0/7.1, Elasticsearch 2.x–5.x) is several major versions behind any current runtime. The only realistic adopters are legacy Symfony 3/4 applications pinned to old Elasticsearch clusters, and even those have cleaner, still-maintained alternatives (ongr/elasticsearch-bundle upstream, or the official elastic/elasticsearch-php client used directly).

Technical risk. High across every dimension that matters to a TPM:

  • Abandonment. Last release 2017-10-27. Zero stars, zero dependents. No evidence of an active maintainer, security policy, or issue triage.
  • Platform drift. PHP 7.0/7.1 era code will not run cleanly on PHP 8.x; Symfony bundle conventions and Elasticsearch mapping APIs have both changed materially since ES 5.
  • Supply chain. Transitive dependencies (old symfony/* components, old elasticsearch/elasticsearch) carry known CVEs. With no upstream patching, you inherit them permanently.
  • Fork ambiguity. Two fork hops with zero signal on who owns the fork, why it exists, or what it changes vs. upstream. Auditing those deltas is mandatory before any use and may reveal unmaintained local patches.

Key questions for the requesting stakeholder.

  1. What problem is this package expected to solve that Laravel Scout, elastic/elasticsearch-php, or a maintained Symfony bundle cannot?
  2. Which Elasticsearch cluster version is in production today, and is there a roadmap to ES 7/8?
  3. Is the intent to fork/vendor this internally, and if so, who is the named owner and what is the patch SLA?
  4. Has the diff versus upstream ongr/elasticsearch-bundle been reviewed? What does the fork add or change?
  5. Are there existing consumers in the estate (dependents: 0 suggests no), or is this greenfield?

Integration Approach

Stack fit. Effectively none for a Laravel stack. For a Symfony stack, fit is limited to legacy applications. Do not treat this as a candidate for new development on either framework.

Migration path. The appropriate "integration" is a migration away from the underlying technology rather than adoption:

  • Laravel: use Laravel Scout with the official elasticsearch/elasticsearch driver (or a managed engine such as Meilisearch/Typesense/Algolia). This gives PHP 8.x compatibility, active maintenance, and framework-native model indexing.
  • Symfony: if the ONGR document-mapping style is required, depend on the upstream ongr/elasticsearch-bundle at whatever version your Symfony runtime supports, or call the official Elasticsearch PHP client directly and own a thin repository layer.
  • Existing consumers of this specific fork: pin the exact commit, vendor it (composer VCS repository or path repository), and schedule replacement.

Compatibility. Assume PHP ≤7.2, Symfony ≤4.x, Elasticsearch ≤5.x. These are hard ceilings, not soft warnings. No compatibility with Laravel 8+, PHP 8+, ES 7/8.

Sequencing. (1) Confirm the business requirement (search, faceting, aggregation, log analytics?). (2) Prototype the modern alternative in a single bounded context. (3) Only if a specific legacy cluster must be preserved, evaluate upstream ONGR rather than this fork. (4) Establish a deprecation date for any legacy dependency before writing new code against it.

Operational Impact

Maintenance. Zero upstream maintenance. Every bug fix, PHP compatibility patch, and security update becomes your team's responsibility. Budget for a full fork-and-own posture if you proceed — realistically 0.25–0.5 FTE ongoing just to stay deployable on a modern runtime.

Support. No vendor, no community (zero stars/dependents implies no issue traffic, no Stack Overflow corpus, no blog coverage). Incident response is entirely internal, with no upstream escalation path. This is the single largest operational liability.

Scaling. Elasticsearch itself scales horizontally, but the bundle is an abstraction layer over it — it does not impede cluster scaling directly. The scaling constraint is engineering: you cannot horizontally scale the number of engineers who understand this abandoned bundle, because onboarding requires reading 2017-era ONGR documentation and Symfony internals. That is a poor scaling characteristic for a growing team.

Failure modes.

  • Silent incompatibility: a routine composer update elsewhere in the app or a PHP minor bump breaks the bundle at runtime, often in DI compilation or mapping metadata — hard to detect in CI without integration tests against a real cluster.
  • CVE accumulation in transitive dependencies with no upgrade path short of a major rewrite.
  • Elasticsearch cluster upgrade blocking: modern ES versions reject the client's API calls and mapping syntax the bundle emits.
  • Knowledge concentration: if the one engineer who understands the ONGR mapping DSL leaves, the search subsystem becomes a black box.

Ramp-up. Steep and non-transferable. Engineers must learn ONGR's document/annotation mapping, repository, and event model — skills that do not generalise to the official Elasticsearch client or to Laravel Scout. Expect 2–4 weeks to first productive contribution versus hours for the maintained alternatives, and a permanent documentation debt.

Recommendation. Reject for adoption. The score of 0 with 0 stars, 0 dependents, and a 2017 last release is consistent with an abandoned fork. The framework mismatch (Symfony bundle presented for a Laravel/PHP context) compounds the technical risk. The correct decision is to standardise on a maintained client or framework-native search integration and treat this package only as a migration source if it is already present in the estate.

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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager