smorken/query-string-filter
A Laravel package for filtering Eloquent model queries directly from URL query string parameters. Define allowed filters, keep controllers clean, and build flexible, request-driven search and listing endpoints with minimal configuration.
Consider it when:
Look elsewhere when:
?include=, ?filter[posts.title]=), or strict allow-listing of filterable fields — spatie/laravel-query-builder is the mature, widely adopted option and is the safer default for anything customer-facing.To executives: This is a small, free Laravel helper that maps query-string parameters onto database filters, so teams can ship filterable list/report/search endpoints faster instead of rebuilding the same plumbing per feature. It is not a strategic investment — it is undifferentiated glue with essentially no community adoption, so we would treat it as internal code we can own and replace, not a vendor commitment. Recommendation: use it (or its pattern) only where filtering needs are simple, and standardize on a better-supported library for anything customer-facing; either way the cost is measured in days, not budget.
To engineering: Treat this as a candidate implementation of our filtering convention, not a lock-in. Action items: (1) code-review the package for input validation, allowed-field enforcement, and query-scope isolation so filters can't leak data across tenants or bypass policies; (2) pin the version and vendor or fork it, given zero dependents and a single maintainer; (3) benchmark against spatie/laravel-query-builder on the features we actually need (sorts, includes, relation filters) before choosing; (4) whichever we pick, document the public query-string contract as an ADR so clients and future endpoints stay consistent.
How can I help you explore Laravel packages today?