PHPackages                             next/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. next/database

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

next/database
=============

0.2.0(11mo ago)241Apache-2.0PHPPHP ^8.2

Since Oct 31Pushed 6mo agoCompare

[ Source](https://github.com/next-laboratory/database)[ Packagist](https://packagist.org/packages/next/database)[ Docs](https://github.com/next-laboratory/database)[ RSS](/packages/next-database/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

[![Max](https://raw.githubusercontent.com/next-laboratory/next/master/public/favicon.ico)](https://raw.githubusercontent.com/next-laboratory/next/master/public/favicon.ico)

轻量 • 简单 • 快速

[![](https://camo.githubusercontent.com/27a980098454c4cd9d29b85beb083f8d3a837b94e1d6178db26e108e057cfdeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d627269676874677265656e)](https://camo.githubusercontent.com/27a980098454c4cd9d29b85beb083f8d3a837b94e1d6178db26e108e057cfdeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d627269676874677265656e)[![](https://camo.githubusercontent.com/f9238ae34e95bcfac3cc13d2cf28d63d73292aab0d475c2d56df7c7bb7b34af1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d617061636865253230322d626c7565)](https://camo.githubusercontent.com/f9238ae34e95bcfac3cc13d2cf28d63d73292aab0d475c2d56df7c7bb7b34af1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d617061636865253230322d626c7565)

> 简单高效操作数据库，不支持swoole协程

### 使用示例

[](#使用示例)

```
$db = new \Next\Database\Database(new \Next\Database\PDOConfig());

$query = $db->query(); // 实例化，建立连接
$query->select('select * from users');
$query->selectOne('select * from users limit 1');
$query->delete('delete from users where id = 1');

//...
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance60

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

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 ~288 days

Total

3

Last Release

354d ago

PHP version history (2 changes)0.1PHP ^8.0|^8.1|^8.2

0.1.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae8591a5d36c52794b3fbc72b1d4199edc62984305386ff65dd97e399137b21f?d=identicon)[chengyao](/maintainers/chengyao)

---

Top Contributors

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

---

Tags

databasemaxphp

### Embed Badge

![Health badge](/badges/next-database/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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