PHPackages                             engmohamedamer/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. [Database &amp; ORM](/categories/database)
4. /
5. engmohamedamer/yii2-enhanced-gii

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

engmohamedamer/yii2-enhanced-gii
================================

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

1.0.1(7y ago)1290BSD-3-ClausePHP

Since Jul 10Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (11)Versions (10)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 engmohamedamer/yii2-enhanced-gii:@dev
```

or add

```
"engmohamedamer/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

34

—

LowBetter than 77% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 73% 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 ~150 days

Recently: every ~245 days

Total

9

Last Release

2757d ago

Major Versions

0.0.9 → 1.0.02018-10-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/df3ca3983c550321afbe4f84e159b909750f0276f8a4f646e25ec2d1b2f9348a?d=identicon)[Mohamed Amer](/maintainers/Mohamed%20Amer)

---

Top Contributors

[![mootensai](https://avatars.githubusercontent.com/u/5844149?v=4)](https://github.com/mootensai "mootensai (116 commits)")[![papoupanous1](https://avatars.githubusercontent.com/u/33318290?v=4)](https://github.com/papoupanous1 "papoupanous1 (24 commits)")[![engmohamedamer](https://avatars.githubusercontent.com/u/12714727?v=4)](https://github.com/engmohamedamer "engmohamedamer (10 commits)")[![marena](https://avatars.githubusercontent.com/u/583615?v=4)](https://github.com/marena "marena (8 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/engmohamedamer-yii2-enhanced-gii/health.svg)

```
[![Health](https://phpackages.com/badges/engmohamedamer-yii2-enhanced-gii/health.svg)](https://phpackages.com/packages/engmohamedamer-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)[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)
