designmynight/laravel-elasticsearch
Laravel package that lets you query Elasticsearch with Eloquent-style builders and get model instances back. Supports query/filter/postFilter, geo search, complex aggregations, and the scroll API for large result sets.
Adopt if:
Look elsewhere if:
elasticsearch/elasticsearch PHP client) for full flexibility.For Executives: "This package lets us deliver Elasticsearch-powered search and analytics without hiring specialized talent or building custom infrastructure. For example, we could launch a product recommendation engine or geo-location service in weeks instead of months, using the same Laravel tools our team already knows. It’s a low-risk, high-reward way to compete on search relevance, with minimal ongoing maintenance. The MIT license and active development ensure long-term viability, while the Eloquent integration reduces training costs. Let’s use this to accelerate feature delivery in [specific area, e.g., e-commerce, content discovery, or logistics]."
For Engineering Leaders: *"This package bridges the gap between Laravel and Elasticsearch by letting us query Elasticsearch using Eloquent syntax, which cuts development time by ~50%. Key benefits:
where(), aggregation(), or whereGeoDistance().make:mapping, migrate:mappings).For Developers: *"If you’ve ever dreaded writing Elasticsearch queries from scratch, this package lets you use Laravel’s Eloquent for search. Highlights:
Model::where('price', '>', 100)->get() works with Elasticsearch.aggregation() calls replace complex JSON DSL.whereGeoDistance() and whereGeoBoundsIn() for location-based apps.make:mapping and migrate:mappings automate index setup.
Downside: Not for advanced Elasticsearch features, but perfect for CRUD-like search queries. Try it for your next search feature—it’s a game-changer."*How can I help you explore Laravel packages today?