PHPackages                             swoft-fork/db - 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. swoft-fork/db

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

swoft-fork/db
=============

swoft database component

v2.1.0(1y ago)0808—0%1Apache-2.0PHP

Since Dec 18Pushed 1y agoCompare

[ Source](https://github.com/sky-up/swoft-db)[ Packagist](https://packagist.org/packages/swoft-fork/db)[ Docs](https://github.com/swoft-cloud/swoft-db)[ RSS](/packages/swoft-fork-db/feed)WikiDiscussions master Synced 1mo ago

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

Swoft Db
========

[](#swoft-db)

[![Latest Stable Version](https://camo.githubusercontent.com/7ca8f41156d61ca21d65a72446399f2a12646fc4284010f6c5671f83c1e6cc4e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73776f66742f64622e737667)](https://packagist.org/packages/swoft/db)[![Php Version](https://camo.githubusercontent.com/3fe2b00a3b57acdbf9c6ee0890609712713224e8b654eff0d23e4a0ae3969828/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e302d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://secure.php.net/)[![Swoft Doc](https://camo.githubusercontent.com/ea1431167b522b88916c717b0bfe6348328a8662a684bb128f0b0bd6d22a20d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d70617373696e672d677265656e2e7376673f6d61784167653d32353932303030)](https://www.swoft.org/docs)[![Swoft License](https://camo.githubusercontent.com/1c419f89412ea6c234c184ad6d85decb127c18584858d3707ae7d8e2131eccc4/68747470733a2f2f696d672e736869656c64732e696f2f686578706d2f6c2f706c75672e7376673f6d61784167653d32353932303030)](https://github.com/swoft-cloud/swoft/blob/master/LICENSE)

Swoft Db Component

**notice:**

This repository is forked from the Swoft repository on GitHub and has only been tested with Swoole version 4.8.13 and the corresponding PHP 8.2 environment. Please use with caution in your production environment, as active code maintenance is not guaranteed. For documentation, please refer to the original framework documentation.

[中文说明](README.zh-CN.md)
-----------------------

[](#中文说明)

中文说明请查看 [README.zh-CN.md](README.zh-CN.md)

Install
-------

[](#install)

- composer command

```
composer require swoft-fork/db
```

Resources
---------

[](#resources)

- [Documentation](https://swoft.org/docs)
- [Contributing](https://github.com/swoft-cloud/swoft/blob/master/CONTRIBUTING.md)
- [Report Issues](https://github.com/swoft-cloud/swoft/issues) and [Send Pull Requests](https://github.com/swoft-cloud/swoft-component/pulls) in the [Main Swoft Repository](https://github.com/swoft-cloud/swoft)

LICENSE
-------

[](#license)

The Component is open-sourced software licensed under the [Apache license](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance40

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bba312fac5f0d799df9e229d514d470468541f1d3ea9c7fae33ab390d5692d14?d=identicon)[sky-up](/maintainers/sky-up)

---

Top Contributors

[![stelin](https://avatars.githubusercontent.com/u/1677543?v=4)](https://github.com/stelin "stelin (465 commits)")[![inhere](https://avatars.githubusercontent.com/u/5302062?v=4)](https://github.com/inhere "inhere (302 commits)")[![huangzhhui](https://avatars.githubusercontent.com/u/12077148?v=4)](https://github.com/huangzhhui "huangzhhui (289 commits)")[![sakuraovq](https://avatars.githubusercontent.com/u/30211214?v=4)](https://github.com/sakuraovq "sakuraovq (139 commits)")[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (65 commits)")[![swoft-bot](https://avatars.githubusercontent.com/u/43714909?v=4)](https://github.com/swoft-bot "swoft-bot (51 commits)")[![whiteCcinn](https://avatars.githubusercontent.com/u/13690966?v=4)](https://github.com/whiteCcinn "whiteCcinn (38 commits)")[![aprchen](https://avatars.githubusercontent.com/u/13740363?v=4)](https://github.com/aprchen "aprchen (26 commits)")[![DeivaLiang](https://avatars.githubusercontent.com/u/12182319?v=4)](https://github.com/DeivaLiang "DeivaLiang (25 commits)")[![HZMarico](https://avatars.githubusercontent.com/u/15900595?v=4)](https://github.com/HZMarico "HZMarico (8 commits)")[![luxin88](https://avatars.githubusercontent.com/u/874056?v=4)](https://github.com/luxin88 "luxin88 (6 commits)")[![sky-up](https://avatars.githubusercontent.com/u/18524410?v=4)](https://github.com/sky-up "sky-up (5 commits)")[![wujunze](https://avatars.githubusercontent.com/u/12997869?v=4)](https://github.com/wujunze "wujunze (5 commits)")[![panyongwei](https://avatars.githubusercontent.com/u/6112421?v=4)](https://github.com/panyongwei "panyongwei (4 commits)")[![q593374099](https://avatars.githubusercontent.com/u/270533879?v=4)](https://github.com/q593374099 "q593374099 (4 commits)")[![adotpeng](https://avatars.githubusercontent.com/u/30491090?v=4)](https://github.com/adotpeng "adotpeng (3 commits)")[![assert6](https://avatars.githubusercontent.com/u/28561563?v=4)](https://github.com/assert6 "assert6 (3 commits)")[![daydaygo](https://avatars.githubusercontent.com/u/3986303?v=4)](https://github.com/daydaygo "daydaygo (3 commits)")[![tanpeng](https://avatars.githubusercontent.com/u/2149695?v=4)](https://github.com/tanpeng "tanpeng (3 commits)")[![rlgy](https://avatars.githubusercontent.com/u/16437400?v=4)](https://github.com/rlgy "rlgy (2 commits)")

---

Tags

phpormdbswooleactive-recordswoft

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/swoft-fork-db/health.svg)

```
[![Health](https://phpackages.com/badges/swoft-fork-db/health.svg)](https://phpackages.com/packages/swoft-fork-db)
```

###  Alternatives

[swoft/db

swoft database component

24167.4k11](/packages/swoft-db)[simple-swoole/db

A db component for Simps.

216.3k3](/packages/simple-swoole-db)[curtis18/swoft-pgsql

swoft postgresql component

101.1k1](/packages/curtis18-swoft-pgsql)

PHPackages © 2026

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