PHPackages                             wpfly/mysqlhelper - 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. wpfly/mysqlhelper

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

wpfly/mysqlhelper
=================

Mysql操作类，PDO链式调用封装

1.0.1(5y ago)06MITPHPPHP &gt;=5.4.0

Since May 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/flyering/MysqlHelper)[ Packagist](https://packagist.org/packages/wpfly/mysqlhelper)[ Docs](https://www.wpfly.cn/)[ RSS](/packages/wpfly-mysqlhelper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

MysqlHelper
===========

[](#mysqlhelper)

#### 介绍

[](#介绍)

Mysql链式调用PDO封装类，简化基本使用。预处理方式真正防止SQL注入。

#### 安装方法

[](#安装方法)

$ composer require wpfly/mysqlhelper

#### 使用说明

[](#使用说明)

use wpfly\\MysqlHelper;

MysqlHelper::get\_instance()-&gt;connect(\[

```
'database' => 'test_helper',

'username' => 'root',

'password' => '',

'prefix' => 'test_',

```

\]);

$db = MysqlHelper::get\_instance();

$db-&gt;select('table1')-&gt;fetch\_all();

更多使用示例参看 sample/index.php

#### 参与贡献

[](#参与贡献)

1. Fork 本仓库
2. 在Fork出的仓库提交代码
3. 新建 Pull Request

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1826d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

mysqlpdo

### Embed Badge

![Health badge](/badges/wpfly-mysqlhelper/health.svg)

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[nette/database

💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.

5656.7M234](/packages/nette-database)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5013.8M120](/packages/dibi-dibi)[aura/sql

A PDO extension that provides lazy connections, array quoting, query profiling, value binding, and convenience methods for common fetch styles. Because it extends PDO, existing code that uses PDO can use this without any changes to the existing code.

5632.5M43](/packages/aura-sql)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)

PHPackages © 2026

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