worksome/laravel-filters

Laravel Filters
278,693
Install
composer require worksome/laravel-filters
Latest Version:v0.1.4
PHP:^8.4
Laravel:12 · 13
Older releases:9 · 10 · 11
License:MIT
Last Updated:Oct 7, 2026
Links: GitHub  ·  Packagist
Maintainer: owenvoke

Laravel Filters

Latest Version on Packagist GitHub Tests Action Status GitHub Static Analysis Action Status Total Downloads

Enhanced filtering for Eloquent models.

Installation

You can install the package via composer:

composer require worksome/laravel-filters

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

composer test

Changelog

Please see GitHub Releases for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

worksome/verify-by-phone

Verify your users by call or SMS

661,040 147
worksome/envy

Automatically keep your .env files in sync.

2,075,809 688
worksome/exchange

Check Exchange Rates for any currency in Laravel.

681,882 126
worksome/company-info

Lookup company information

522,301 34
tiagomichaelsousa/laravelfilters

Laravel Filters is a package that allows to filter eloquent models in a clean wa...

24,945 62

Version History

Version Released PHP Laravel License
v0.1.4 ^8.4 ^12.0 || ^13.0 MIT
v0.1.3 ^8.4 ^12.0 || ^13.0 MIT
v0.1.2 ^8.3 ^11.0 || ^12.0 MIT
v0.1.1 ^8.2 ^10.0 || ^11.0 MIT
v0.1.0 ^8.2 ^9.0 || ^10.0 MIT