PHPackages                             hellozach/laravel-filterable - 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. hellozach/laravel-filterable

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

hellozach/laravel-filterable
============================

Filterable trait for Models in Laravel

0.1.2(8y ago)0669PHP

Since May 25Pushed 8y agoCompare

[ Source](https://github.com/hellozach/laravel-filterable)[ Packagist](https://packagist.org/packages/hellozach/laravel-filterable)[ RSS](/packages/hellozach-laravel-filterable/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

\#Installation

\##1. Require the package

```
composer require hellozach/laravel-filterable

```

\##2. Use the Filterable trait

Add the following line to the filterable model

```
use HelloZach\LaravelFilterable\Traits\Filterable;
```

And add the trait to the class:

```
use Filterable;
```

\##3. Add filterable columns to model

Add an array of columns that are filterable for the model:

```
protected $filterable = [
    // Column names
];
```

\##4. Add filterable casts (options)

Map column names to methods in the model class

```
protected $filterableCasts = [
    // 'column_name' => 'method_name'
];
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2958d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8039641?v=4)[Zach Johnson](/maintainers/hellozach)[@hellozach](https://github.com/hellozach)

---

Top Contributors

[![hellozach](https://avatars.githubusercontent.com/u/8039641?v=4)](https://github.com/hellozach "hellozach (3 commits)")

### Embed Badge

![Health badge](/badges/hellozach-laravel-filterable/health.svg)

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

###  Alternatives

[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26190.2k](/packages/awesome-nova-dependent-filter)[algolia/php-dom-parser

A simple tool to turn DOM into Algolia search friendly record objects.

181.8k](/packages/algolia-php-dom-parser)

PHPackages © 2026

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