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

Query String Filter Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping for filterable endpoints. Any roadmap item that implies "list + filter + sort" API surface (customer-facing search, admin tables, reporting views, export feeds) needs a query-string filtering convention. This package is one candidate implementation of that convention, so it directly informs the "do we standardize filtering?" decision rather than a single feature.
  • Build vs. buy on plumbing, not differentiation. Query-string → Eloquent predicate mapping is undifferentiated glue. Adopting a helper (this or a better-known alternative) shifts engineering hours from scaffolding to product logic. The real decision is which filtering helper, and this package's low signal (0 stars, 0 dependents, single maintainer) means it should be treated as "build-small / vendor-small," not "adopt a platform."
  • API contract and consistency. Choosing a filtering approach early fixes the public query-string contract for clients. This decision is expensive to reverse — worth an explicit ADR even if the chosen library is trivial.
  • Delivery acceleration for MVPs. For internal tools and early API versions, a lightweight filter helper can shave days off a sprint; that trade is a capacity decision PMs own.
  • Opportunity score read. At ~31/100 opportunity with zero adoption signals, this is best framed as a reference pattern the team can borrow (or vendor) rather than a strategic dependency to standardize on.

When to Consider This Package

Consider it when:

  • You are on Laravel + Eloquent, and the only requirement is straightforward equality/LIKE-style filtering from query-string parameters.
  • The endpoint is internal, low-traffic, or an MVP where speed of delivery beats ecosystem maturity.
  • You are comfortable pinning a version, vendoring the source, or forking it — the team can own ~a few hundred lines of glue if the maintainer disappears.
  • Someone on the team has read the code and it fits your request-validation and authorization model (filters must not bypass policy scoping).

Look elsewhere when:

  • You need sorts, pagination integration, relationship filters (?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.
  • Security/compliance review requires a maintained dependency with a CVE/response track record; 0 stars and 0 dependents is a supply-chain and bus-factor flag.
  • You need complex boolean/faceted filtering, saved searches, or GraphQL-style query flexibility — no small helper will cover this.
  • Your organization mandates "no single-maintainer dependencies in production paths" — in that case use it as a design reference and implement in-house.

How to Pitch It (Stakeholders)

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.

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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core