PHPackages                             colee/yii2-gii - 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. [Framework](/categories/framework)
4. /
5. colee/yii2-gii

ActiveLibrary[Framework](/categories/framework)

colee/yii2-gii
==============

gii library for Yii2 framework

1.0.0(9y ago)011MITPHPPHP ~5.5|~7.0

Since Dec 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/colee1985/yii2-gii)[ Packagist](https://packagist.org/packages/colee/yii2-gii)[ Docs](https://github.com/colee1985/yii2-gii)[ RSS](/packages/colee-yii2-gii/feed)WikiDiscussions master Synced 2mo ago

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

yii2-gii 扩展
===========

[](#yii2-gii-扩展)

================================== 安装：composer require colee/yii2-gii --prefer-dist

Model分层说明
---------

[](#model分层说明)

> common里分了三层
> bases --- 基础层
> models --- 实例方法层
> cores --- 核心层，对外接口，静态方法为主

### usage

[](#usage)

在配置中添加

```
$config['modules']['gii']['generators'] = [
    'model' => [
        'class' => 'colee\gii\model\Generator'
    ],
];
```

---

夹具数据模版生产工具
----------

[](#夹具数据模版生产工具)

### usage

[](#usage-1)

在配置中添加

```
$config['modules']['gii']['generators'] = [
    'fixtures' => [
        'class' => 'colee\gii\fixtures\Generator'
    ],
];
```

> 通过访问  生成夹具模版
> 并前往模版编写写测试用例

生成假数据

```
tests/codeception/bin/yii fixture/generate teacher --count=100
```

运行测试用例:

```
	cd tests/codeception/common/
	codecept run
```

运行指定目录的case

```
codecept run .\unit\models\fixtures
```

运行指定文件的某个case

```
codecept run .\unit\models\LoginFormTest.php:testLoginNoUser
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db0473ddb3ebe0eed43d1ff2814b70630f0e9373d0878c006307684d2cb3776c?d=identicon)[colee](/maintainers/colee)

---

Top Contributors

[![lidenggao](https://avatars.githubusercontent.com/u/1161635?v=4)](https://github.com/lidenggao "lidenggao (25 commits)")

---

Tags

Fixtureyii2coleeyii2-gii

### Embed Badge

![Health badge](/badges/colee-yii2-gii/health.svg)

```
[![Health](https://phpackages.com/badges/colee-yii2-gii/health.svg)](https://phpackages.com/packages/colee-yii2-gii)
```

###  Alternatives

[yiisoft/yii2-faker

Fixture generator. The Faker integration for the Yii framework.

11215.9M486](/packages/yiisoft-yii2-faker)[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[colee/yii2-vue

Vue.js library for Yii2 framework

1241.2k1](/packages/colee-yii2-vue)

PHPackages © 2026

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