PHPackages                             mdhesari/laravel-query-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. [Database &amp; ORM](/categories/database)
4. /
5. mdhesari/laravel-query-filters

ActiveLibrary[Database &amp; ORM](/categories/database)

mdhesari/laravel-query-filters
==============================

Easily apply query filters in your controllers.

3.4.1(2y ago)03511MITPHPPHP ^8.0

Since Apr 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Mdhesari/laravel-query-filters)[ Packagist](https://packagist.org/packages/mdhesari/laravel-query-filters)[ RSS](/packages/mdhesari-laravel-query-filters/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (41)Used By (1)

Laravel Query Filters
=====================

[](#laravel-query-filters)

Cool idea to apply query filters in your controllers.

Install
-------

[](#install)

```
composer require mdhesari/laravel-query-filters
```

Usage
-----

[](#usage)

```
public function index(\Illuminate\Http\Request $request, \Mdhesari\LaravelQueryFilters\Actions\ApplyQueryFilters $applyQueryFilters) {
    return $applyQueryFilters(\MyModel::query(), $request->all())->paginate();
}
```

Actions
-------

[](#actions)

Query filters are a bunch of actions that you can use in order to filter your controllers.

Extend
------

[](#extend)

We have provided some default filters in the default action that you can extend it with its abstract implementation.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Recently: every ~19 days

Total

40

Last Release

961d ago

Major Versions

0.3.8 → 1.0.02022-07-20

1.0.0 → 2.0.02022-07-20

2.2.0 → 3.0.02023-06-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/7504d2dd62302fe03079daa3b37a7cb007d7d67d9aacdf8f5128282d4ab15fcc?d=identicon)[mdhesari](/maintainers/mdhesari)

---

Top Contributors

[![Mdhesari](https://avatars.githubusercontent.com/u/28428724?v=4)](https://github.com/Mdhesari "Mdhesari (41 commits)")

---

Tags

laraveleloquentqueryfilters

### Embed Badge

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

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

###  Alternatives

[cerbero/query-filters

Filter Laravel Eloquent models based on query parameters.

85282.6k](/packages/cerbero-query-filters)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aldemeery/sieve

A simple, clean and elegant way to filter Eloquent models.

1396.3k](/packages/aldemeery-sieve)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17649.9k](/packages/lacodix-laravel-model-filter)[indexzer0/eloquent-filtering

Powerful eloquent filtering

22425.9k3](/packages/indexzer0-eloquent-filtering)[czim/laravel-filter

Filter for Laravel Eloquent queries, with support for modular filter building

8973.0k3](/packages/czim-laravel-filter)

PHPackages © 2026

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