spatie/elasticsearch-query-builder
Lightweight fluent PHP query builder for Elasticsearch. Build and execute searches with an ergonomic Builder API: set index, add queries, aggregations, sorting, and filters, then run search() against the official Elasticsearch PHP client.
Match, Terms, Range, Max) without deep Elasticsearch expertise.elasticsearch-search-string-parser (synergistic integration).For Executives: "This package lets us ship Elasticsearch-powered search features 3x faster by abstracting complex queries into simple, Laravel-friendly methods. For example, adding fuzzy search or aggregations takes minutes instead of days. It’s a lightweight, MIT-licensed tool that reduces dev overhead while enabling scalable search—ideal for e-commerce filters, content discovery, or analytics dashboards. No vendor lock-in; we own the queries and can extend them as needed."
For Engineering: *"Spatie’s query builder gives us a fluent, type-safe API to construct Elasticsearch queries without writing raw JSON. Key benefits:
->addQuery(MatchQuery::create())).How can I help you explore Laravel packages today?