PHPackages                             light/yii2-generators - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. light/yii2-generators

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

light/yii2-generators
=====================

gii gernators

0.1.3(9y ago)1471MITPHPPHP &gt;=5.4.0

Since Dec 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lichunqiang/yii2-generators)[ Packagist](https://packagist.org/packages/light/yii2-generators)[ RSS](/packages/light-yii2-generators/feed)WikiDiscussions master Synced 4w ago

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

yii2-generators
---------------

[](#yii2-generators)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist light/yii2-generators "*"

```

or add

```
"light/yii2-generators": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
$config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [
        'extension' => [
            'class' => 'light\generators\extension\Generator'
        ],
        'form' => [
            'class' => 'light\generators\form\Generator'
        ],
        'model' => [
            'class' => 'yii\gii\generators\model\Generator',
            'templates' => [
                'common' => '@vendor/light/yii2-generators/model/default'
            ]
        ],
        'crud' => [
            'class' => 'light\generators\crud\Generator'
        ]
    ]
];
```

License
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Every ~77 days

Total

4

Last Release

3626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (6 commits)")

---

Tags

yii2project templategiigernators

### Embed Badge

![Health badge](/badges/light-yii2-generators/health.svg)

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

###  Alternatives

[mdmsoft/yii2-gii

Yii2 custom generator for gii

1335.9k1](/packages/mdmsoft-yii2-gii)

PHPackages © 2026

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