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. [Database &amp; ORM](/categories/database)
4. /
5. hengyuz/dosql

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

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 today

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 13% 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://avatars.githubusercontent.com/u/20574849?v=4)[HengYuZ](/maintainers/HengYuZ)[@HengYuZ](https://github.com/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)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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