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

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

laravel-filter/filter
=====================

the package is for filtering data for EXP you have search bar/page with multi filters option this package will help you to do that filters easily and fast this package using pipeline technology and it will check the request part by part

07PHP

Since Feb 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/laravel-filter/laravel-filter)[ Packagist](https://packagist.org/packages/laravel-filter/filter)[ RSS](/packages/laravel-filter-filter/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

blackWhaleDev-filter
====================

[](#blackwhaledev-filter)

The `blackWhaleDev/filter` package provides easy to writing global queries for filtering.

Here's a demo of how you can use it:

```
pipe(New User(),
    [
        NameFilter::class,
    ])->paginate(10);
```

You can create your own filter class using artisan command :

```
php artisan make:filter ClassName ColumnName
```

This Command have some option:

```
--type --second --relation=
```

Support us
----------

[](#support-us)

You can support me by using this package and help me to improve it

Documentation
-------------

[](#documentation)

For EXP: you have search page and you want set some filters for that page, and this filters should be apply on User class.

first with `artisan` call we create 2 class (Name and LastNameLike):

name:

```
php artisan make:filter Name FirstName
```

this command will generate "Name.php" file in "App\\QueryFilters" Folder

*Note*: the column that we want make filter on it is "first\_name" but we should write it in CamelCase and also in the HTML form input name should be the same of column name "first\_name"

now second class :

```
php artisan make:filter LastName LastName --type=like
```

this command will generate "likeLastName.php" file in "App\\QueryFilters" Folder

now call `pipe()` helper into your function

```
pipe(New User(), [
    Name::class,
    likeLastName::class, // --type = like
])->paginate(10);
```

just it ;) !!!

when request come into the helper its go to the Name Class and check if request has "name" it will be check and if request do not has "name" it will be go to next request (next class) without check

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the filter system? Feel free to [create an issue on GitHub](https://github.com/usee1993/usee-filter/issues), I'll try to address it as soon as possible.

If you've found a security issue please mail  instead of using the issue tracker.

Type of Artisan Call
--------------------

[](#type-of-artisan-call)

*Single*:

```
php artisan make:filter Name FirstName
```

its default type

*like*:

```
php artisan make:filter Name FirstName --type=like
```

its "Like" Query

*between*:

```
php artisan make:filter Name StartDate --type=between --second=EndDate
```

in this type you should pass "--second" option and it will check data between two time or anything else...

*--relation*:

```
php artisan make:filter Name StartDate --type=relation --relation=RelationName
```

in this type you should pass "--relation" option and it will check data whereHas that relation

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require laravel-filter/filter
```

The package will automatically register itself.

*Note*: Please Keep CamelCase Style

Security
--------

[](#security)

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

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc92a88ee751475e8d8932af7f50cf7309d0e215892dbd2032bb7d6a3d76539a?d=identicon)[usee40](/maintainers/usee40)

---

Top Contributors

[![alirezaGAlizade](https://avatars.githubusercontent.com/u/66624615?v=4)](https://github.com/alirezaGAlizade "alirezaGAlizade (9 commits)")

### Embed Badge

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

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

###  Alternatives

[ircmaxell/filterus

A library for filtering variables in PHP

44613.4k6](/packages/ircmaxell-filterus)[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26190.2k](/packages/awesome-nova-dependent-filter)

PHPackages © 2026

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