PHPackages                             dungang/yii2-mysqli - 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. dungang/yii2-mysqli

ActiveLibrary

dungang/yii2-mysqli
===================

A PDO\_Mysql for Yii2, base on mysqli

0.0.1(7y ago)180MITPHPPHP &gt;=5.4.0

Since Jun 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dungang/yii2-mysqli)[ Packagist](https://packagist.org/packages/dungang/yii2-mysqli)[ RSS](/packages/dungang-yii2-mysqli/feed)WikiDiscussions master Synced 2mo ago

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

mysqli
======

[](#mysqli)

由于环境不支持 pdo\_msyql,用mysqli模拟pdo\_mysql

安装
--

[](#安装)

```
composer require dungang/yii2-mysqli

```

使用
--

[](#使用)

修改数据配置文件 config/db.php

> 'pdoClass'=&gt; 'dungang\\mysqli\\PDO\_Mysql',

```
return [
    'class' => 'yii\db\Connection',
    'pdoClass'=> 'dungang\mysqli\PDO_Mysql',
    'username' => 'root',
    'password' => 'root',
    'charset' => 'utf8',
    'tablePrefix' => 'vint_',
    'dsn' => 'mysql:host=localhost;port=3306;dbname=db_test',
];

```

协议
--

[](#协议)

The MIT License (MIT)

Copyright (c) 2017 dungang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

2896d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7221526?v=4)[顿刚](/maintainers/dungang)[@dungang](https://github.com/dungang)

---

Top Contributors

[![dungang](https://avatars.githubusercontent.com/u/7221526?v=4)](https://github.com/dungang "dungang (12 commits)")[![evgenyvas](https://avatars.githubusercontent.com/u/2832088?v=4)](https://github.com/evgenyvas "evgenyvas (1 commits)")

### Embed Badge

![Health badge](/badges/dungang-yii2-mysqli/health.svg)

```
[![Health](https://phpackages.com/badges/dungang-yii2-mysqli/health.svg)](https://phpackages.com/packages/dungang-yii2-mysqli)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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