PHPackages                             huaweichenai/gbase - 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/gbase

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

huaweichenai/gbase
==================

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

1.0(7mo ago)01proprietaryPHPPHP &gt;=5.5

Since Sep 16Pushed 7mo agoCompare

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

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

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

[](#db-for-yii20)

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

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

### 安装方法

[](#安装方法)

---

```
composer require huaweichenai/gbase
```

### 配置

[](#配置)

---

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

人大金仓数据库配置

```
'components' => [
    'db' => [
        'class' => 'huaweichenai\gbase\Connection',
        'dsn' => 'odbc:GBASE数据库ODBC数据源名称;',
        'username' => '用户名',
        'password' => '密码',
    ],
]
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance66

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

235d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

translatevalidatedbdriveryii2db extensiongbase

### Embed Badge

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

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

###  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)
