PHPackages                             laratoolbox/eloquent-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. laratoolbox/eloquent-filters

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

laratoolbox/eloquent-filters
============================

Easily add filters into eloquent models

v0.1.0(5y ago)29MITPHPPHP &gt;=7.0

Since Jan 16Pushed 5y ago2 watchersCompare

[ Source](https://github.com/laratoolbox/eloquent-filters)[ Packagist](https://packagist.org/packages/laratoolbox/eloquent-filters)[ Docs](https://github.com/laratoolbox/eloquent-filters)[ RSS](/packages/laratoolbox-eloquent-filters/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Eloquent Filters
========================

[](#laravel-eloquent-filters)

Create and use eloquent filters easily.

This package idea comes from [Laracasts lets build a forum with laravel](https://laracasts.com/series/lets-build-a-forum-with-laravel) series.

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

[](#installation)

You can install the package via composer:

```
$ composer require laratoolbox/eloquent-filters
```

Usage
=====

[](#usage)

First create filter like below.

```
php artisan make:filter UserFilter
```

After creating the filter, add `HasFilter` trait into your eloquent model.

```
use \LaraToolbox\EloquentFilters\HasFilter;
```

Then you may use filter like below.

```
MyEloquentModel::filter( new UserFilter() )->get();

// or you can give request instance into filter.

$request = request();
MyEloquentModel::filter( new UserFilter($request) )->get();
```

Testing
=======

[](#testing)

// TODO:

Changelog
=========

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
============

[](#contributing)

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

Security
========

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits

- [Semih ERDOGAN](https://github.com/laratoolbox)
- [Dincer DEMIRCIOGLU](https://github.com/dinncer)
- [All contributors](https://github.com/laratoolbox/database-viewer/graphs/contributors)

License
=======

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1942d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5646041?v=4)[Semih ERDOGAN](/maintainers/semiherdogan)[@semiherdogan](https://github.com/semiherdogan)

![](https://www.gravatar.com/avatar/1ab92e481cd0cba5b60895acf86eecbc5e7db547b62cae1c0413204bd6d1e5dc?d=identicon)[dinncer](/maintainers/dinncer)

---

Top Contributors

[![semiherdogan](https://avatars.githubusercontent.com/u/5646041?v=4)](https://github.com/semiherdogan "semiherdogan (7 commits)")

---

Tags

laraveleloquentfilterslaratoolbox

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laratoolbox-eloquent-filters/health.svg)

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[cerbero/query-filters

Filter Laravel Eloquent models based on query parameters.

85282.6k](/packages/cerbero-query-filters)[czim/laravel-filter

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

8973.0k3](/packages/czim-laravel-filter)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)

PHPackages © 2026

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