PHPackages                             imiphp/imi-laravel-database - 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. imiphp/imi-laravel-database

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

imiphp/imi-laravel-database
===========================

imi laravel database component

v0.0.1(4y ago)36MulanPSL-1.0PHP

Since Nov 13Pushed 2y ago2 watchersCompare

[ Source](https://github.com/imiphp/imi-laravel-database)[ Packagist](https://packagist.org/packages/imiphp/imi-laravel-database)[ RSS](/packages/imiphp-imi-laravel-database/feed)WikiDiscussions master Synced 2d ago

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

imi-laravel-database
====================

[](#imi-laravel-database)

 [ ![imi](https://camo.githubusercontent.com/41475cbf5d4d55194b37404990e3a77279d7bdfa3c1f434431c457f91aafda74/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f696d697068702f696d6940322e302f7265732f6c6f676f2e706e67) ](https://www.imiphp.com)

[![Latest Version](https://camo.githubusercontent.com/561e182d3dddf1c973b8e41dcb03ecb592b8702b60d6c6cb17afd731937123c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d697068702f696d692d6c61726176656c2d64617461626173652e737667)](https://packagist.org/packages/imiphp/imi-laravel-database)[![GitHub Workflow Status (branch)](https://camo.githubusercontent.com/9ca2addde2aaf872b96b22b7541ae6e422c0fe3be3cff2c2286527949f3d01c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f696d697068702f696d692d6c61726176656c2d64617461626173652f63692f646576)](https://camo.githubusercontent.com/9ca2addde2aaf872b96b22b7541ae6e422c0fe3be3cff2c2286527949f3d01c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f696d697068702f696d692d6c61726176656c2d64617461626173652f63692f646576)[![Php Version](https://camo.githubusercontent.com/4a5c2ab20974058a8bab53ecb30ac4c2e6bb961df6229b7386fdc097ab53dfa8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e342d627269676874677265656e2e737667)](https://secure.php.net/)[![Swoole Version](https://camo.githubusercontent.com/f4210afc3f396a720a75802010218d847f3ba4f7ae5182c570b1fb2504ec9ec3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776f6f6c652d2533453d342e372e302d627269676874677265656e2e737667)](https://github.com/swoole/swoole-src)[![imi Doc](https://camo.githubusercontent.com/8a45ed26be92338e9c97fc73a6d772a77ee94fb973e93efc89decb1ea59a8bd7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d70617373696e672d677265656e2e737667)](https://doc.imiphp.com/v2.0/)[![imi License](https://camo.githubusercontent.com/88f935c290e6e4efdbf89c57e2dccfe703401825437616aaa3d9b1f0a656e1f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d756c616e50534c253230312e302d627269676874677265656e2e737667)](https://github.com/imiphp/imi-laravel-database/blob/master/LICENSE)[![star](https://camo.githubusercontent.com/aabd6062050fb143d10f586111d8c5aab1069c642513786c02c88b38ddde6e87/68747470733a2f2f67697465652e636f6d2f797572756e736f66742f494d492f62616467652f737461722e7376673f7468656d653d677670)](https://gitee.com/yurunsoft/IMI/stargazers)

介绍
--

[](#介绍)

实现在 imi 框架中使用 Laravel 的 `illuminate/database`，可以在 `imi-swoole`、`imi-fpm`、`imi-workerman`、`imi-roadrunner` 下运行。

开始使用
----

[](#开始使用)

**引入组件：**`composer require imiphp/imi-laravel-database`

**使用：**

配置好 imi 的数据库连接池，目前只支持 pdo\_mysql。

支持 database、orm 功能。

命令行功能等其它功能暂未实现，逐步开发完善中。

- [imi 完全开发手册](https://doc.imiphp.com/v2.0/)
- [Laravel 中文文档](https://learnku.com/docs/laravel/8.5/database/10403#2b27b3)

运行环境
----

[](#运行环境)

- Linux 系统 (Swoole 不支持在 Windows 上运行)
- [PHP](https://php.net/) &gt;= 7.4
- [Composer](https://getcomposer.org/) &gt;= 2.0
- [Swoole](https://www.swoole.com/) &gt;= 4.7.0
- PDO 扩展

捐赠
--

[](#捐赠)

[![捐赠](https://camo.githubusercontent.com/d6289b746e049310225a52ee7d4f9aab71cf9df63a3341cb037e7ec09b31ea1f/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f696d697068702f696d6940322e302f7265732f7061792e706e67)](https://camo.githubusercontent.com/d6289b746e049310225a52ee7d4f9aab71cf9df63a3341cb037e7ec09b31ea1f/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f696d697068702f696d6940322e302f7265732f7061792e706e67)

开源不求盈利，多少都是心意，生活不易，随缘随缘……

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

1641d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f917bb42280d114c53cebadc2942a13ee03abe14971089f88895e266d637169?d=identicon)[Yurunsoft](/maintainers/Yurunsoft)

---

Top Contributors

[![Yurunsoft](https://avatars.githubusercontent.com/u/20104656?v=4)](https://github.com/Yurunsoft "Yurunsoft (18 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/imiphp-imi-laravel-database/health.svg)

```
[![Health](https://phpackages.com/badges/imiphp-imi-laravel-database/health.svg)](https://phpackages.com/packages/imiphp-imi-laravel-database)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[staudenmeir/eloquent-json-relations

Laravel Eloquent relationships with JSON keys

1.1k5.8M24](/packages/staudenmeir-eloquent-json-relations)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.1M11](/packages/bavix-laravel-wallet)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[gearbox-solutions/eloquent-filemaker

A package for getting FileMaker records as Eloquent models in Laravel

6454.8k2](/packages/gearbox-solutions-eloquent-filemaker)[cybercog/laravel-ownership

Laravel Ownership simplify management of Eloquent model's owner.

9126.6k3](/packages/cybercog-laravel-ownership)

PHPackages © 2026

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