PHPackages                             hengyuz/dosql - 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. hengyuz/dosql

ActiveProject

hengyuz/dosql
=============

dosql is a class which has sealed the generic operate of mysql databases

17PHP

Since Sep 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/HengYuZ/Dosql)[ Packagist](https://packagist.org/packages/hengyuz/dosql)[ RSS](/packages/hengyuz-dosql/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Dosql ##简介 ##Dosql是一个简单的mysql操作数据库封装类。

\##使用 新建一个composer.json文件

```
    {
      "require":{
          "php":">=5.3.0",
          "hengyuz/dosql":"dev-master"
      },
      "minimum-stability":"stable"
    }

```

然后保存composer.json文件后，使用composer install 命令进行安装。

然后使用命令: `cd vendor/hengyu/dosql`;

简单使用可以参照show.php。 ##更多用法： Dosql不使用组合条件：

```
1. $dosql->select('user','','');
2. $dosql->select('user','',['id='=>9]);

```

Dosql支持组合条件使用：

```
1. $dosql->select('tb_name',['name','id'],['AND'=>[['id='=>9],['name'=>'hengyu']);
2. $dosql->select('tb_name',['name','id'],['AND'=>['OR'=>[['id='=>9],['name='=>'hengyu']],'OR'=>[['id='=>5],['name='=>'zhu']]]];

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/17dcd39f736c18b4627fb67372cc8bb87b8304fc5a48256ee082b6f78e3d508a?d=identicon)[HengYuZ](/maintainers/HengYuZ)

### Embed Badge

![Health badge](/badges/hengyuz-dosql/health.svg)

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

PHPackages © 2026

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