quillphp/eloquent 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

quillphp/eloquent

最新稳定版本:0.0.1

Composer 安装命令:

composer require quillphp/eloquent

包简介

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

README 文档

README

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

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

composer require quillphp/eloquent

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

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

MIT

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固