PHPackages                             huaweichenai/dmbase - 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. huaweichenai/dmbase

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

huaweichenai/dmbase
===================

该组件扩展支持yii框架不支持的数据库驱动，目前增加了达梦数据库的支持，并对部分函数、关键字做了mysql格式的语法翻译。

1.0(1y ago)083proprietaryPHPPHP &gt;=5.5

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/huaweichenai/dmbase)[ Packagist](https://packagist.org/packages/huaweichenai/dmbase)[ RSS](/packages/huaweichenai-dmbase/feed)WikiDiscussions master Synced 1mo ago

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

DB For Yii2.0
=============

[](#db-for-yii20)

该组件扩展支持yii框架不支持的数据库驱动，目前增加了达梦数据库的支持，并对部分函数、关键字做了mysql格式的语法翻译。

特性说明： 1、支持不同第三方数据库连接（目前已实现达梦数据库）； 2、支持主要数据库ORM操作封装，比如创建索引、创建表等； 3、支持函数转换，并提供用户扩展转换sql的方法。

### 安装方法

[](#安装方法)

---

```
composer require huaweichenai/dmbase
```

### 配置

[](#配置)

---

在配置文件中components中添加连接组件

达梦数据库配置

```
'components' => [
    'db' => [
        'class' => 'huaweichenai\dmbase\table\db\Connection',
        'dsn' => 'dm:host=127.0.0.1;port=5432;dbname=模式;',
        'username' => '用户名',
        'password' => '密码',
    ],
]
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b421da4ccc357acb51b3c127387bf06648210f5fb68fcec8ad831859b474d1a?d=identicon)[huaweichenai](/maintainers/huaweichenai)

---

Tags

translatevalidatedbdriveryii2DMdb extension

### Embed Badge

![Health badge](/badges/huaweichenai-dmbase/health.svg)

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

###  Alternatives

[php-on-couch/php-on-couch

CouchDB NoSQL database access in PHP

103190.3k3](/packages/php-on-couch-php-on-couch)[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)[tomatophp/filament-translations

Manage your translation with DB and cache, you can scan your languages tags like trans(), \_\_(), and get the string inside and translate them use UI.

6230.1k3](/packages/tomatophp-filament-translations)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)[craftcms/query

Execute database queries from the Control Panel

1614.4k1](/packages/craftcms-query)[craftcms/fix-fks

Restore missing foreign key constraints in the database.

1217.4k](/packages/craftcms-fix-fks)

PHPackages © 2026

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