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

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

imzeali/filter-eloquent
=======================

A eloquent orm filter

1.5(6y ago)29611MITPHP

Since Jun 11Pushed 1y agoCompare

[ Source](https://github.com/imzeali/filter-eloquent)[ Packagist](https://packagist.org/packages/imzeali/filter-eloquent)[ RSS](/packages/imzeali-filter-eloquent/feed)WikiDiscussions master Synced today

READMEChangelog (6)DependenciesVersions (7)Used By (1)

filter-eloquent
===============

[](#filter-eloquent)

Quickly filter data by concatenating query strings

### Install

[](#install)

```
composer install imzeali/filter-eloquent

```

### Supported operators

[](#supported-operators)

```
  ' '           // equal to
  'eq'          // equal to
  'ne'          // not equal to
  'gt'          // Is greater than
  'ge'          // great than and equal to
  'lt'          // less than
  'le'          // less than and equal to
  'like'        // LIKE
  'in'          // IN
  'not_in'      // NOT IN

```

### Usage

[](#usage)

$q syntax：{field name}\_\_{operator}={query condition}

$q can be spliced by the client

Basis query：

```
$q = 'id__eq=100';
new Filter(new User(), $q)->filteredQuery();
//mean
User::where('id',1);
```

Multiple query conditions：

```
$q = 'id__gt=100,name__like=%baby%';
new Filter(new User(), $q)->filteredQuery();
//User::where('id', ‘>’, ‘100’)->where('name','like','%baby%');
```

Model query conditions

```
$q = 'user.city__eq=Fuzhou';
new Filter(new Article(), $q)->filteredQuery();
//Article::whereHas('user', function ($query){
//    $query->where('city', '=', 'Fuzhou');
//});
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Recently: every ~30 days

Total

6

Last Release

2408d ago

### Community

Maintainers

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

---

Top Contributors

[![imzeali](https://avatars.githubusercontent.com/u/13485293?v=4)](https://github.com/imzeali "imzeali (12 commits)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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