PHPackages                             petersonsilva/easyiigii - 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. petersonsilva/easyiigii

ActiveYii2-extension[Database &amp; ORM](/categories/database)

petersonsilva/easyiigii
=======================

Generate Relational (hasMany, hasOne, belongsTo, &amp; nested) Models &amp; CRUD.

1.0.3(7y ago)01.6kBSD-3-ClausePHP

Since Nov 17Pushed 7y agoCompare

[ Source](https://github.com/PetersonSilvadeJesus/EasYiiGii)[ Packagist](https://packagist.org/packages/petersonsilva/easyiigii)[ RSS](/packages/petersonsilva-easyiigii/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (5)Used By (0)

EasYii Gii
==========

[](#easyii-gii)

EasyYii Gii (generator code Yii2) with Relation person to PostgreSQL

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

[](#installation)

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

Either run

```
composer require petersonsilva/easyiigii
```

or add

```
"petersonsilva/easyiigii": "^1"

```

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

Configuration
-------------

[](#configuration)

1. Then you must add this code at your config\\web.php.

```
'components'=>[
	'user' => [
		'class' => 'webvimark\modules\UserManagement\components\UserConfig',

		// Comment this if you don't want to record user logins
		'on afterLogin' => function($event) {
				\webvimark\modules\UserManagement\models\UserVisitLog::newVisitor($event->identity->id);
			}
	],
],

'modules' => [
      'user-management' => [
            'class' => 'webvimark\modules\UserManagement\UserManagementModule',
		'on beforeAction'=>function(yii\base\ActionEvent $event) {
                  if ( $event->action->uniqueId == 'user-management/auth/login' ){
                        $event->action->controller->layout = 'loginLayout.php';
                  };
            },
	],
      'gridview' => [
          'class' => '\kartik\grid\Module',
      ],
      'datecontrol' => [
          'class' => '\kartik\datecontrol\Module',
      ],
  ],
```

See gridview settings on

See datecontrol settings on

2. In your config/console.php (this is needed for migrations and working with console)

```
'modules'=>[
	'user-management' => [
		'class' => 'webvimark\modules\UserManagement\UserManagementModule',
	        'controllerNamespace'=>'vendor\webvimark\modules\UserManagement\controllers', // To prevent yii help from crashing
	],
],
```

3. Run migrations

```
./yii migrate --migrationPath=vendor/webvimark/module-user-management/migrations/
```

See user-management settings on

Usage :
-------

[](#usage-)

Go to your gii tools, and notice the new EasYii Gii Generator for models &amp; CRUD

Features
========

[](#features)

Model :
-------

[](#model-)

1. Generate representation columns(RepresentingColumn)
2. Generate CPF/CNPJ validator
3. Generate e-mail validator
4. Specify your label name / attribute for foreign keys and fields based on the DBMS comment

CRUD :
------

[](#crud-)

1. Generate all CRUD with wildcard (\*) of table
2. Generate related input output
3. Export to various formats
4. Expandable / collapsible row at index grid view for related data
5. Views with or without TabularForms
6. Custom fields for dates (DateControl)
7. Custom fields for foreign keys (Select2 and RepresentingColumn)
8. Exclusion constraint based on DBMS actions
9. Addition of the security module (User management module for Yii 2)
10. Custom fields for input file (FileInput)
11. View foreign key data based on RepresentingColumn

Migration Generator :
---------------------

[](#migration-generator-)

1. Generate migration from your database structure (based on : )

I'm open for any improvement

Thanks To
=========

[](#thanks-to)

1. Jiwanndaru () for creating the tradition
2. kartik-v () for most of widgets
3. schmunk42 () for bootstrap &amp; model base &amp; extension
4. mdmunir () for JsBlock &amp; Migration Generator (from )
5. mootensai () for yii2-enhanced-gii ()
6. thtmorais ()

Developers
==========

[](#developers)

2. petersonsilvadejesus ()

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~88 days

Total

4

Last Release

2833d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/430a01bfcbb6097c69bb848740385c9189be01d8e386a0e7f588617bc78b71ca?d=identicon)[petersonsilva](/maintainers/petersonsilva)

---

Top Contributors

[![thtmorais](https://avatars.githubusercontent.com/u/18515639?v=4)](https://github.com/thtmorais "thtmorais (25 commits)")[![PetersonSilvadeJesus](https://avatars.githubusercontent.com/u/26747556?v=4)](https://github.com/PetersonSilvadeJesus "PetersonSilvadeJesus (5 commits)")

---

Tags

yii2yiigiirelationEnhancedsimple-giieasyiigiieasyii gii

### Embed Badge

![Health badge](/badges/petersonsilva-easyiigii/health.svg)

```
[![Health](https://phpackages.com/badges/petersonsilva-easyiigii/health.svg)](https://phpackages.com/packages/petersonsilva-easyiigii)
```

###  Alternatives

[mootensai/yii2-enhanced-gii

Generate Relational (hasMany, hasOne, belongsTo, &amp; nested) Models &amp; CRUD.

202174.6k5](/packages/mootensai-yii2-enhanced-gii)[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

97209.6k16](/packages/johnitvn-yii2-ajaxcrud)

PHPackages © 2026

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