PHPackages                             mj4444/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. mj4444/yii2-gii

ActiveYii2-extension[Framework](/categories/framework)

mj4444/yii2-gii
===============

The Gii extension for the Yii framework

184PHP

Since Feb 19Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-gii
========

[](#yii2-gii)

Extended models for Gii, the code generator of Yii2 Framework

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

[](#installation)

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

```
php composer.phar require --dev --prefer-dist mj4444/yii2-gii:dev-master

```

The generators are registered automatically in the application bootstrap process, if the Gii module is enabled

Usage
-----

[](#usage)

Visit your application's Gii (eg. `index.php?r=gii` and choose one of the generators from the main menu screen.

For basic usage instructions see the [Yii2 Guide section for Gii](http://www.yiiframework.com/doc-2.0/guide-tool-gii.html).

```
if (!YII_ENV_TEST) {
    Yii::$container->set('mj4444\yii2gii\generators\model\Generator', ['requiredStrict' => true]);
}
```

Differences from standard generator
-----------------------------------

[](#differences-from-standard-generator)

- Additional class of models for user code
- Autogenerate validators for default values
- Autogenerate validators for fields enum (possible partial/full deactivation)
- Autogenerate constants for fields and enum set
- Autogenerate behaviors for models containing fields handled TimestampBehavior
- Table 'migration' is excluded from autogeneration (configurable)
- Can configure ignore list tables
- Completely redesigned creating names for relations

Отличия от стандартного генератора
----------------------------------

[](#отличия-от-стандартного-генератора)

- Дополнительный класс модели для пользовательского кода
- Автогенерация валидаторов для значений по умолчанию
- Автогенерация валидаторов для полей enum (возможно частичное/полное отключение)
- Автогенерация констант для полей enum и set
- Автогенерация behaviors для моделей содержащих поля обрабатываемые TimestampBehavior
- Таблица 'migration' исключается из автогенерации (настраивается)
- Возможно настроить список игнорируемых таблиц
- Полностью переработано создание имён для связей

Links
-----

[](#links)

- [GitHub](https://github.com/mj4444ru/yii2-gii.git)
- [Packagist](https://packagist.org/packages/mj4444/yii2-gii)
- Yii Extensions

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/95adc63b893241604860f7db48dafdbdd3db24e4040a04330e77ffbcc77e60c0?d=identicon)[mj4444](/maintainers/mj4444)

---

Top Contributors

[![mj4444ru](https://avatars.githubusercontent.com/u/9354685?v=4)](https://github.com/mj4444ru "mj4444ru (40 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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