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

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

quillphp/eloquent
=================

Tested, worker-safe Eloquent ORM integration for the Quill PHP framework

0.0.1(yesterday)05↑1100%MITPHPPHP ^8.3

Since Apr 6Pushed yesterdayCompare

[ Source](https://github.com/quillphp/quill-eloquent)[ Packagist](https://packagist.org/packages/quillphp/eloquent)[ Docs](https://quillphp.com)[ RSS](/packages/quillphp-eloquent/feed)WikiDiscussions main Synced today

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

Quill Eloquent Integration
==========================

[](#quill-eloquent-integration)

Tested, worker-safe Eloquent ORM integration for the [Quill PHP](https://github.com/quillphp/quill) framework.

Features
--------

[](#features)

- ✨ **Service Provider Integration**: Auto-registers `DB` and `Capsule` in the Quill container.
- 🔄 **Auto-reconnection**: Detects "Gone away" errors and automatically reconnects in long-running processes.
- ⚡ **Database Middleware**: Per-request health checks to ensure your worker is always ready to serve.

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

[](#installation)

```
composer require quillphp/eloquent
```

Setup
-----

[](#setup)

Register the `EloquentServiceProvider` in your `public/index.php`:

```
use Quill\Eloquent\EloquentServiceProvider;

$app = new App();
$app->setContainer(new \Quill\Container\Container());

EloquentServiceProvider::register($app, [
    'driver'    => 'mysql',
    'host'      => '127.0.0.1',
    'database'  => 'quill',
    'username'  => 'root',
    'password'  => '',
    'charset'   => 'utf8mb4',
    'collation' => 'utf8mb4_unicode_ci',
    'prefix'    => '',
]);
```

Worker Safety
-------------

[](#worker-safety)

For long-running CLI workers, it is highly recommended to use the `DatabaseMiddleware` to ensure the connection is healthy before each request:

```
use Quill\Eloquent\Middleware\EnsureDatabaseConnection;

$app->use(EnsureDatabaseConnection::class);
```

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4742b2ad737c14793d6b0a418e6da90b446153a4d7ba120a1f3c07e2a2951d28?d=identicon)[quillphp](/maintainers/quillphp)

---

Top Contributors

[![fr3on](https://avatars.githubusercontent.com/u/26393383?v=4)](https://github.com/fr3on "fr3on (1 commits)")

---

Tags

phpdatabaseormmysqlsqlitepostgreseloquentquill

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M35](/packages/scienta-doctrine-json-functions)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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