PHPackages                             thtmorais/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. [Admin Panels](/categories/admin)
4. /
5. thtmorais/easyiigii

AbandonedArchivedYii2-extension[Admin Panels](/categories/admin)

thtmorais/easyiigii
===================

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

1.0.3(7y ago)12461[3 issues](https://github.com/thtmorais/EasYiiGii/issues)BSD-3-ClausePHP

Since Nov 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/thtmorais/EasYiiGii)[ Packagist](https://packagist.org/packages/thtmorais/easyiigii)[ RSS](/packages/thtmorais-easyiigii/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (11)Versions (5)Used By (0)

The project was abandoned, working on yii2-giix
===============================================

[](#the-project-was-abandoned-working-on-yii2-giix)

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 thtmorais/easyiigii
```

or add

```
"thtmorais/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()

Developers
==========

[](#developers)

1. thtmorais()

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

2882d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cnpj-validatorcodigocpf-validadorcruddatedatecontroldatepickereasyiiforeign-keysgeneratorgeradorgiimodelphpphp-frameworksselect2simplificadowebdevelopmentyii2yii2-extensionyii2yiigiirelationEnhancedsimple-giieasyiigiieasyii gii

### Embed Badge

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

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

###  Alternatives

[mootensai/yii2-enhanced-gii

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

203182.4k5](/packages/mootensai-yii2-enhanced-gii)[schmunk42/yii2-giiant

Gii CRUD generator for Yii 2 Framework

269493.0k17](/packages/schmunk42-yii2-giiant)

PHPackages © 2026

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