PHPackages                             minms/yii2-gii-model-auto-generator - 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. minms/yii2-gii-model-auto-generator

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

minms/yii2-gii-model-auto-generator
===================================

批量将数据库中的表自动生成为YII2的AR模型

1.1.1(8y ago)1891PHPPHP &gt;=5.4.0

Since Mar 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/minms/yii2-gii-model-auto-generator)[ Packagist](https://packagist.org/packages/minms/yii2-gii-model-auto-generator)[ RSS](/packages/minms-yii2-gii-model-auto-generator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

yii2-gii-model-auto-generator
=============================

[](#yii2-gii-model-auto-generator)

批量将数据库中的表自动生成为YII2的AR模型

### 使用方法

[](#使用方法)

`composer require "minms/yii2-gii-model-auto-generator:dev-master"`

#### YII2高级模板

[](#yii2高级模板)

在console/config/main.php中加入

```
'controllerMap' => [
        'auto' => [
            'class' => 'minms\gii\AutoGeneratorController',
            //'yiiPath' => '/path/to/yii',
            //'ns' => 'common\\\\models\\\\base', //生成的类存放位置, 默认common/models/base
            //'db' => 'db', //使用的数据库, 默认db
        ]
    ],

```

执行命令

```
php yii auto
或
./yii auto

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Every ~0 days

Total

2

Last Release

2976d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c5ebf06c8bc66fa3b5f36f2435c556432223b3e63fb6ef3c1acb488d6a37fda?d=identicon)[minms](/maintainers/minms)

---

Top Contributors

[![minms](https://avatars.githubusercontent.com/u/17665885?v=4)](https://github.com/minms "minms (5 commits)")[![luckerdj](https://avatars.githubusercontent.com/u/6904976?v=4)](https://github.com/luckerdj "luckerdj (3 commits)")

### Embed Badge

![Health badge](/badges/minms-yii2-gii-model-auto-generator/health.svg)

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

###  Alternatives

[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

97209.6k16](/packages/johnitvn-yii2-ajaxcrud)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11315.1k](/packages/yii2tech-illuminate)

PHPackages © 2026

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