PHPackages                             worksome/laravel-filters - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. worksome/laravel-filters

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

worksome/laravel-filters
========================

Laravel Filters

v0.1.3(3mo ago)0246.2k↑32.1%1[1 PRs](https://github.com/worksome/laravel-filters/pulls)MITPHPPHP ^8.4CI passing

Since Mar 20Pushed 1w ago9 watchersCompare

[ Source](https://github.com/worksome/laravel-filters)[ Packagist](https://packagist.org/packages/worksome/laravel-filters)[ Docs](https://github.com/worksome/laravel-filters)[ GitHub Sponsors](https://github.com/worksome)[ RSS](/packages/worksome-laravel-filters/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (4)Dependencies (20)Versions (9)Used By (0)

Laravel Filters
===============

[](#laravel-filters)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7b1eaf2a84ec7c8f7c8ac8c3caa3e1d79d821a303fe9b9ae7c9cf389634cdd32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776f726b736f6d652f6c61726176656c2d66696c746572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/worksome/laravel-filters)[![GitHub Tests Action Status](https://camo.githubusercontent.com/016b348674353db3ab38d021354dead96837d7c5cf8eebf571c73f9d52bf0ad4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f776f726b736f6d652f6c61726176656c2d66696c746572732f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d5465737473)](https://github.com/worksome/laravel-filters/actions?query=workflow%3ATests+branch%3Amain)[![GitHub Static Analysis Action Status](https://camo.githubusercontent.com/297a97fea65a2b7dcc225ef93007f01e49dd3ebbd66e90f852c53e9a8d3596b9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f776f726b736f6d652f6c61726176656c2d66696c746572732f7374617469632e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d537461746963253230416e616c79736973)](https://github.com/worksome/laravel-filters/actions?query=workflow%3A%22Static%20Analysis%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/15bf1755405e78d7b9fc57d9eea53d15b72bebeebc2b6d6c828f17ee067f4500/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776f726b736f6d652f6c61726176656c2d66696c746572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/worksome/laravel-filters)

Enhanced filtering for Eloquent models.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require worksome/laravel-filters
```

Usage
-----

[](#usage)

```
// Using DI
public function __construct(private readonly \Worksome\Filters\FilterQuery $filter) {}

$filteredInstance = $this->filter
    ->model(TestModel::class)
    ->apply(TestModelFilter::class)
    ->input($input)
    ->get();

// Using the facade
$filteredStatic = \Worksome\Filters\Filter::model(TestModel::class)
    ->apply(TestModelFilter::class)
    ->input($input)
    ->get();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [GitHub Releases](https://github.com/worksome/laravel-filters/releases) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Owen Voke](https://github.com/worksome)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~361 days

Total

4

Last Release

116d ago

PHP version history (3 changes)v0.1.0PHP ^8.2

v0.1.2PHP ^8.3

v0.1.3PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![lukeraymonddowning](https://avatars.githubusercontent.com/u/12202279?v=4)](https://github.com/lukeraymonddowning "lukeraymonddowning (1 commits)")

---

Tags

laravelworksomelaravel-filters

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/worksome-laravel-filters/health.svg)

```
[![Health](https://phpackages.com/badges/worksome-laravel-filters/health.svg)](https://phpackages.com/packages/worksome-laravel-filters)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
