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

Eloquent Filters Laravel Package

gurgentil/eloquent-filters

gurgentil/eloquent-filters adds clean, reusable filtering to Laravel Eloquent models. Define filter classes for each parameter and let the package whitelist and apply request-based query filters, keeping controllers tidy and searches safe, flexible, and easy to maintain.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping for search and filtering: Helps PMs decide whether to ship query-param filtering in admin panels, internal tools, dashboards, and simple APIs without building a custom filter layer from scratch.
  • Build vs. buy/integrate: Provides a lightweight integration option for standard Eloquent filtering. The build decision should account for package age, low community adoption, and likely need to fork or vendor it.
  • API contract design: Encourages a consistent pattern for filterable fields and query parameters, reducing ad hoc controller logic and making filtering behavior easier to document.
  • Roadmap prioritization: Useful when filtering is a supporting capability, not a differentiator. Avoid spending roadmap time on custom filter plumbing if this package can safely cover basic needs.
  • Use case validation: Best suited to simple, model-backed filters such as status, date range, owner, category, or boolean flags in CRUD/admin workflows.
  • Maintenance risk planning: With 15 stars and a last release in January 2021, treat adoption as a small dependency bet: assign an owner, verify Laravel/PHP compatibility, and plan for fork/maintenance if the feature becomes important.

When to Consider This Package

  • Consider it when the team is on Laravel/Eloquent, filtering needs are straightforward, and the product can tolerate a small, low-maintenance dependency.
  • Good fit for internal admin screens, back-office tools, early-stage APIs, or MVPs where speed matters more than advanced search relevance.
  • Reasonable if engineering is comfortable vendoring/forking the package or wrapping it behind an internal filtering abstraction.
  • Consider it only after verifying compatibility with the current Laravel/PHP version, test coverage expectations, and security implications of exposing filterable fields.
  • Look elsewhere for advanced full-text search, faceted search at scale, typo tolerance, ranking, analytics, complex tenant/permission-aware filtering, or high-traffic public APIs.
  • Look elsewhere if the organization requires actively maintained dependencies, broad community validation, recent releases, or vendor support.
  • Avoid making it a core platform dependency unless the team explicitly accepts ownership of upgrades and bug fixes.

How to Pitch It (Stakeholders)

For executives: This is a small, MIT-licensed Laravel package that can reduce time-to-market for basic filtering in admin tools and APIs. It is not a strategic platform bet: low adoption and no recent release mean we should use it narrowly, validate compatibility, and keep an exit path.

For engineering: It offers a reusable way to map query filters onto Eloquent models and keep controllers cleaner. Before adoption, run a compatibility spike against our Laravel/PHP versions, wrap it behind our own filter interface, and confirm behavior for authorization, tenant boundaries, and allowed filter fields. If it fits, it can save a few days of plumbing; if not, the abstraction keeps replacement cheap.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib