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

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

marena/yii2-enhanced-gii
========================

Generate Relational (has many) Models &amp; CRUD.

1.0.4(1y ago)03.2k1BSD-3-ClausePHP

Since Jul 10Pushed 1y ago1 watchersCompare

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

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

yii2-enhanced-gii
=================

[](#yii2-enhanced-gii)

Yii2 Gii (generator) with Relation

[![Latest Stable Version](https://camo.githubusercontent.com/65283b953c47f7948f439c20cd42f7500ad747bf910caf4b20300483eca2ce37/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f74656e7361692f796969322d656e68616e6365642d6769692f762f737461626c65)](https://packagist.org/packages/mootensai/yii2-enhanced-gii)[![License](https://camo.githubusercontent.com/2405a8bd22b90a01674eacb0399af9a3785baa97df6af2bde10713b617806185/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f74656e7361692f796969322d656e68616e6365642d6769692f6c6963656e7365)](https://packagist.org/packages/mootensai/yii2-enhanced-gii)[![Total Downloads](https://camo.githubusercontent.com/e6e84931d304e30847bf3ae577c7c85b518033597d1b9e2a0d076c5ae632b233/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6f74656e7361692f796969322d656e68616e6365642d6769692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mootensai/yii2-enhanced-gii)[![Monthly Downloads](https://camo.githubusercontent.com/bd0940062814f6ea1013b2500ad752754dc4b2828a8a07ed2de763265d4ff990/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f74656e7361692f796969322d656e68616e6365642d6769692f642f6d6f6e74686c79)](https://packagist.org/packages/mootensai/yii2-enhanced-gii)[![Daily Downloads](https://camo.githubusercontent.com/a34ad2870e486de1e59aeddf5c009bd242a37b2fc555cf9dd9c062055b80824f/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f74656e7361692f796969322d656e68616e6365642d6769692f642f6461696c79)](https://packagist.org/packages/mootensai/yii2-enhanced-gii)[![Join the chat at https://gitter.im/mootensai/yii2-enhanced-gii](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/mootensai/yii2-enhanced-gii?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

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

[](#installation)

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

Either run

```
$ composer require mootensai/yii2-enhanced-gii:@dev
```

or add

```
"mootensai/yii2-enhanced-gii": "@dev"

```

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

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

```
'modules' => [
... //your another module
      'gridview' => [
          'class' => '\kartik\grid\Module',
      ],
... // your another module
    ],
```

Usage :
-------

[](#usage-)

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

\#Features

Model :
-------

[](#model-)

1. Generate optimistic lock
2. Generate Timestamp Behaviors
3. Generate Blameable Behavior
4. Generate UUID Behavior

CRUD :
------

[](#crud-)

1. Generate all CRUD with wildcard (\*) of table
2. Generate related input output
3. Specify your name/label attribute for foreign keys
4. Set your column to hidden
5. Specify your skipped columns
6. Specify your skipped relations
7. Set pluralize or not
8. PDF Printable view
9. Expandable / collapsible row at index grid view for related data

To Do
=====

[](#to-do)

1. Nested set detector &amp; generator -&gt; cancelled, move to -&gt;  (unfinished)
2. One-page-CRUD template
3. Generate migrations for tables (like )
4. RESTful template

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance42

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% 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 ~316 days

Recently: every ~569 days

Total

12

Last Release

480d ago

Major Versions

0.0.9 → 1.0.02018-10-25

### Community

Maintainers

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

---

Top Contributors

[![mootensai](https://avatars.githubusercontent.com/u/5844149?v=4)](https://github.com/mootensai "mootensai (116 commits)")[![marena](https://avatars.githubusercontent.com/u/583615?v=4)](https://github.com/marena "marena (12 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

yii2yiigiirelationEnhanced

### Embed Badge

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

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

###  Alternatives

[mootensai/yii2-enhanced-gii

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

202174.6k5](/packages/mootensai-yii2-enhanced-gii)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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