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

ActiveYii2-extension

kirillemko/yii2-gii-custom
==========================

Generating models with generated folder

1.0.5(3y ago)01.3kPHP

Since Jul 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kirillemko/yii2-gii-custom)[ Packagist](https://packagist.org/packages/kirillemko/yii2-gii-custom)[ RSS](/packages/kirillemko-yii2-gii-custom/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Yii2 Custom model generator
===========================

[](#yii2-custom-model-generator)

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

[](#installation)

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

Either run

```
composer require kirillemko/yii2-gii-custom

```

or add

```
"kirillemko/yii2-gii-custom": "*"

```

to the require section of your composer.json.

Использование
-------------

[](#использование)

Этот генератор моделей генерирует два файла модели.

1. Это классический файл модели, но лежащий в папке generated
2. Пустая модель, унаследованная от той, которая в папке generated

Это позволяет вручную вносить изменения в модель наследка. А когда таблица в БД изменится, просто перегенерировать модель в папке generated, не потеряв изменения

Для использования зарегистрировать генератор в gii

```
'modules' => [
    'gii' => [
        'class' => 'yii\gii\Module',
        'generators' => [
            'customModel' => [
                'class' => 'kirillemko\gii\model\Generator',
                'generateCINamespace' => true
            ],
        ],
    ],
],

```

Из консоли генератор можно вызвать вот так

```
vendor\kirillemko\yii-ci-integration\src\yii gii/customModel --tableName=pm_kpi_groups --modelClass=
KpiGroups --ns=app\domain\kpi

```

Или сгенерировать по маске имени таблиц

```
./yii gii/customModel --tableName=uni* --ns=app\\domain\\unit\\models

```

Credits
-------

[](#credits)

Authors: Kirill Emelianenko

Email:

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~186 days

Total

3

Last Release

1391d ago

### Community

Maintainers

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

---

Top Contributors

[![kirillemko](https://avatars.githubusercontent.com/u/7727765?v=4)](https://github.com/kirillemko "kirillemko (8 commits)")

---

Tags

yii2gii

### Embed Badge

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

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

###  Alternatives

[schmunk42/yii2-giiant

Gii CRUD generator for Yii 2 Framework

269471.5k17](/packages/schmunk42-yii2-giiant)[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

97209.6k16](/packages/johnitvn-yii2-ajaxcrud)[mdmsoft/yii2-gii

Yii2 custom generator for gii

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

PHPackages © 2026

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