PHPackages                             bzarzuela/modelfilter - 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. [Search &amp; Filtering](/categories/search)
4. /
5. bzarzuela/modelfilter

ActiveLibrary[Search &amp; Filtering](/categories/search)

bzarzuela/modelfilter
=====================

Utility Class for Laravel 5 to assist in easily filtering paginated results.

v0.1.4(8y ago)51.6kMITPHPPHP &gt;=5.5.0

Since Aug 28Pushed 8y ago2 watchersCompare

[ Source](https://github.com/bzarzuela/modelfilter)[ Packagist](https://packagist.org/packages/bzarzuela/modelfilter)[ RSS](/packages/bzarzuela-modelfilter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Model Filter
============

[](#model-filter)

Utility Class for Laravel 5 to assist in easily filtering paginated results

Installation
============

[](#installation)

composer require bzarzuela/modelfilter

Usage
=====

[](#usage)

Use in actions that show the list of models. In this example, it's the index action in the TicketsController.

```
public function index()
{
    $model_filter = new ModelFilter('tickets');

    $model_filter->setRules([
        'id' => ['primary'],
        'concern_types' => ['in', 'concern_type_id'],
        'created_from' => ['from', 'created_at'],
        'created_to' => ['to', 'created_at'],
    ]);

    $tickets = $model_filter->filter(Ticket::query())->paginate(30);

    $filters = $model_filter->getFormData();

    return view('tickets.index', compact('tickets', 'filters'));
}

```

The $filters variable passed to the view allows for the form to render the previously specified filters.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~172 days

Total

5

Last Release

3219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38ccdece52217bd76389a892ab153ef30ccbff5cbddb2c4b90754370b6b2694d?d=identicon)[bzarzuela](/maintainers/bzarzuela)

---

Top Contributors

[![bzarzuela](https://avatars.githubusercontent.com/u/230894?v=4)](https://github.com/bzarzuela "bzarzuela (5 commits)")[![bryanzarzuela](https://avatars.githubusercontent.com/u/39159496?v=4)](https://github.com/bryanzarzuela "bryanzarzuela (3 commits)")

---

Tags

laravelfilter

### Embed Badge

![Health badge](/badges/bzarzuela-modelfilter/health.svg)

```
[![Health](https://phpackages.com/badges/bzarzuela-modelfilter/health.svg)](https://phpackages.com/packages/bzarzuela-modelfilter)
```

###  Alternatives

[webbingbrasil/filament-advancedfilter

Advanced filter component for filament admin.

146132.1k](/packages/webbingbrasil-filament-advancedfilter)[awesome-nova/filter-card

A Laravel Nova card.

25126.1k](/packages/awesome-nova-filter-card)[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

16179.1k](/packages/pos-lifestyle-laravel-nova-date-range-filter)[tapp/filament-value-range-filter

Filament country code field.

2362.2k](/packages/tapp-filament-value-range-filter)[webbingbrasil/filament-datefilter

Date filter component for filament tables.

1479.4k](/packages/webbingbrasil-filament-datefilter)[ambengers/query-filter

Laravel package for filtering resources with request query string

3513.5k](/packages/ambengers-query-filter)

PHPackages © 2026

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