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

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

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

It provides a Eloquent query builder that can be used with trait on any model for Laravel project

v1.8(6y ago)7801MITPHPPHP ~7.1

Since Apr 1Pushed 6y ago3 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (10)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/b286f75ca6956c9eb42499c39fef22ca745d6a982c8c34dd0f9064fea8dd4824/68747470733a2f2f706f7365722e707567782e6f72672f75626974636f72702f6c61726176656c2d66696c7465722f762f737461626c65)](https://packagist.org/packages/ubitcorp/laravel-filter)[![Total Downloads](https://camo.githubusercontent.com/0a8aad2400123a9314105f328b6b1c254d351c96bdc6f7ee1b6f63ea7c66fca1/68747470733a2f2f706f7365722e707567782e6f72672f75626974636f72702f6c61726176656c2d66696c7465722f646f776e6c6f616473)](https://packagist.org/packages/ubitcorp/laravel-filter)[![License](https://camo.githubusercontent.com/2e17583fd62ee7ba8eb5dc052fdbf1b13eb916f41c90777e180930b2c0314f5f/68747470733a2f2f706f7365722e707567782e6f72672f75626974636f72702f6c61726176656c2d66696c7465722f6c6963656e7365)](https://packagist.org/packages/ubitcorp/laravel-filter)[![Monthly Downloads](https://camo.githubusercontent.com/cbcfa9e6e781305ee4ed6931ab08c4373a5201875ed19e2b3ad30fb2b5c42057/68747470733a2f2f706f7365722e707567782e6f72672f75626974636f72702f6c61726176656c2d66696c7465722f642f6d6f6e74686c79)](https://packagist.org/packages/ubitcorp/laravel-filter)[![Daily Downloads](https://camo.githubusercontent.com/cf7d9489b2867a880cf401506bc7c61d7281478924350f5c6aaaf7218beb5a3f/68747470733a2f2f706f7365722e707567782e6f72672f75626974636f72702f6c61726176656c2d66696c7465722f642f6461696c79)](https://packagist.org/packages/ubitcorp/laravel-filter)

Laravel Filter
==============

[](#laravel-filter)

It provides a Eloquent Filter from request or an array. It can be used with trait on any model for Laravel project

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

[](#installation)

Via Composer

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

To change configuration file:

```
php artisan vendor:publish --provider="ubitcorp\Filter\ServiceProvider"
```

Usage
=====

[](#usage)

This package provides the **filter** trait that can be included any model. After that the functions below can be used:

```
//In Project Model (example)
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use ubitcorp\Filter\Traits\Filter;

class Project extends Model
{
  use Filter;
  ...
}
```

```
//In a Controller
Project::with("customer")->filter()->paginate();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Recently: every ~16 days

Total

9

Last Release

2409d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/382927?v=4)[ubit](/maintainers/ubit)[@ubit](https://github.com/ubit)

---

Top Contributors

[![hcivelek](https://avatars.githubusercontent.com/u/371721?v=4)](https://github.com/hcivelek "hcivelek (15 commits)")

---

Tags

eloquentfilterquery builderlaravel filterhasan civelekubitcorp

### Embed Badge

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

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.9M109](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k35.7M51](/packages/kirschbaum-development-eloquent-power-joins)[mehdi-fathi/eloquent-filter

Eloquent Filter adds custom filters automatically to your Eloquent Models in Laravel.It's easy to use and fully dynamic, just with sending the Query Strings to it.

448201.9k1](/packages/mehdi-fathi-eloquent-filter)[lemaur/eloquent-publishing

218.5k1](/packages/lemaur-eloquent-publishing)

PHPackages © 2026

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