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

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

sorokinmedia/yii2-generators
============================

Generators for Yii2(gii)

1.2(7y ago)137BSD-3-ClausePHP

Since Jun 24Pushed 7y ago5 watchersCompare

[ Source](https://github.com/sorokinmedia/yii2-generators)[ Packagist](https://packagist.org/packages/sorokinmedia/yii2-generators)[ RSS](/packages/sorokinmedia-yii2-generators/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (26)Used By (0)

Generators for Gii module of Yii2 Framework
===========================================

[](#generators-for-gii-module-of-yii2-framework)

[![Total Downloads](https://camo.githubusercontent.com/94afc5dfd468a82f7654b00017f2d3a47d6fad3c5ac9bf2a655574fcb377b5cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f726f6b696e6d656469612f796969322d67656e657261746f72732e737667)](https://packagist.org/packages/sorokinmedia/yii2-generators)

The extension allows to generate some types of classes on base of existing `ActiveRecord` model class.

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

[](#installation)

Install with composer:

```
composer require --dev ma3obblu/yii2-generators
```

or add

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

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

Add new generator into your Gii module config:

```
$config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [
        'crud' => [
            'class' => 'ma3obblu\gii\generators\crud\Generator',
        ],
        'entity' => [
            'class' => 'ma3obblu\gii\generators\entity\Generator',
        ],
        'form' => [
            'class' => 'ma3obblu\gii\generators\form\Generator',
        ],
        'handler' => [
            'class' => 'ma3obblu\gii\generators\handler\Generator',
        ],
        'fixture_class' => [
            'class' => 'ma3obblu\gii\generators\fixture_class\Generator',
        ],
        'fixture_data' => [
            'class' => 'ma3obblu\gii\generators\fixture_data\Generator',
        ]
    ],
];
```

And add the following line:

```
Yii::setAlias('@tests', dirname(__DIR__) . '/tests');
```

in top of your `config/web.php` file.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

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

Total

25

Last Release

2834d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6071315?v=4)[Ruslan Gilyazetdinov](/maintainers/Ma3oBblu)[@Ma3oBblu](https://github.com/Ma3oBblu)

---

Top Contributors

[![Ma3oBblu](https://avatars.githubusercontent.com/u/6071315?v=4)](https://github.com/Ma3oBblu "Ma3oBblu (41 commits)")

---

Tags

yii2giiyii 2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-gii

The Gii extension for the Yii framework

21118.4M613](/packages/yiisoft-yii2-gii)[elisdn/yii2-composite-form

Nested forms base class for Yii2 Framework.

53211.8k8](/packages/elisdn-yii2-composite-form)[vova07/yii2-start-blogs-module

The blogs module for Yii2-start application.

1710.2k1](/packages/vova07-yii2-start-blogs-module)

PHPackages © 2026

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