sehrgut/eloquery
eloquery is a small Laravel package that adds convenient helpers for building Eloquent queries, aimed at reducing boilerplate when filtering, sorting, and composing database queries in your models.
filter, sort, paginate, eager-load, and search. That makes it a useful specification artifact for deciding how our own endpoints should behave (syntax, defaults, validation, error responses) before we commit to an implementation.Consider adoption (or, more realistically, vendoring/forking) when:
spatie/laravel-query-builder before standardizing.Look elsewhere when:
To executives: This is a small open-source utility that defines a consistent way for our APIs to accept filtering, sorting, pagination, eager-loading, and search parameters. The package itself is archived and essentially unmaintained, so we are not proposing a dependency or a vendor relationship — we are proposing to use it as a low-cost design reference and, if we proceed, to own a small fork internally under its permissive MIT license. The business value is consistency: every list endpoint behaves the same way, front-end and integration work gets cheaper, and we avoid re-litigating query conventions per feature.
To engineering: It's a compact reference implementation of the query-parameter layer we keep rebuilding. Adoption is a build-vs-fork-vs-buy call: because it's archived with negligible adoption, treat it as a starting point or a pattern source rather than a library to depend on. Forking or reimplementing gives us the same conventions with the maintenance and security posture we actually control.
How can I help you explore Laravel packages today?