PHPackages                             duiying/mysql-util - 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. duiying/mysql-util

ActiveLibrary

duiying/mysql-util
==================

PHP

04PHP

Since Sep 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/duiying/mysql-util)[ Packagist](https://packagist.org/packages/duiying/mysql-util)[ RSS](/packages/duiying-mysql-util/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 mysql-util
============

[](#----mysql-util)

PHP MySQL 库

**安装**

```
composer require duiying/mysql-util
```

**使用**

1、获取数据库连接

```
$db = MySQLUtil::getInstance()->getConnection($host, $user, $pass, $db, $port);
```

2、执行支持的方法

- create
- update
- search
- find
- delete
- query（原生 SQL）
- beginTransaction
- commit
- rollback

3、关闭数据库连接

```
$db->closeConnection();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/30bfc87ee117893719ee4548d1f544ad1231da7be3ea9397cced5ae797585dd8?d=identicon)[duiying](/maintainers/duiying)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/duiying-mysql-util/health.svg)

```
[![Health](https://phpackages.com/badges/duiying-mysql-util/health.svg)](https://phpackages.com/packages/duiying-mysql-util)
```

PHPackages © 2026

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