PHPackages                             codelytv/criteria-to-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. codelytv/criteria-to-eloquent

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

codelytv/criteria-to-eloquent
=============================

0.1.3(1y ago)22.3k11PHPPHP ^8.2

Since Aug 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/CodelyTV/php-criteria-to_eloquent)[ Packagist](https://packagist.org/packages/codelytv/criteria-to-eloquent)[ RSS](/packages/codelytv-criteria-to-eloquent/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (8)Used By (1)

 [    ![Codely logo](https://camo.githubusercontent.com/c1f65beb72f6457edf01a833da681b2ac4da31e376f4436f676de954ab69498d/68747470733a2f2f636f64656c792e636f6d2f6c6f676f2f636f64656c795f6c6f676f2e737667)  ](https://codely.com)

 🎼 Criteria to Eloquent
========================

[](#---criteria-to-eloquent)

🔒 Read-only repository
======================

[](#-read-only-repository)

Any modification must be done in the [main repository](https://github.com/CodelyTV/php-criteria).

📥 Installation
--------------

[](#-installation)

```
composer require codelytv/criteria-to-eloquent
```

💻 Usage
-------

[](#-usage)

There are two ways to use this package.

Classic way:

```
$toConverter = new CriteriaToEloquentConverter();
$users = $toConverter->applyCriteria(User::query(), $criteria)->get();
```

Laravel way:

```
$users = CriteriaToEloquentConverter::convert(User::query(), $criteria)->get();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

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

7

Last Release

697d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1331435?v=4)[Rafa Gómez](/maintainers/rgomezcasas)[@rgomezcasas](https://github.com/rgomezcasas)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

### Embed Badge

![Health badge](/badges/codelytv-criteria-to-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/codelytv-criteria-to-eloquent/health.svg)](https://phpackages.com/packages/codelytv-criteria-to-eloquent)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

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

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[awobaz/compoships

Laravel relationships with support for composite/multiple keys

1.2k11.7M47](/packages/awobaz-compoships)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.3M19](/packages/bavix-laravel-wallet)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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