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

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

naduvko/yii2-enhanced-gii
=========================

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

v1.0.0(9y ago)066BSD-3-ClausePHP

Since Jul 10Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (10)Versions (9)Used By (0)

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

[](#yii2-enhanced-gii)

Yii2 Gii (generator) with Relation

Fork of mootensai/yii2-enhanced-gii

Do not use it on production!

[![Total Downloads](https://camo.githubusercontent.com/e2eb49b189ea367a37aa6ada60fc6f333132c616ab84de73ef0aec89c9e87b11/68747470733a2f2f706f7365722e707567782e6f72672f6e616475766b6f2f796969322d656e68616e6365642d6769692f646f776e6c6f616473)](https://packagist.org/packages/naduvko/yii2-enhanced-gii)[![Latest Stable Version](https://camo.githubusercontent.com/53c5b18e43fdb7ac922a7df228213156eac86ffe4acc32e9865e476d0e8cdbf0/68747470733a2f2f706f7365722e707567782e6f72672f6e616475766b6f2f796969322d656e68616e6365642d6769692f762f737461626c65)](https://packagist.org/packages/naduvko/yii2-enhanced-gii)[![License](https://camo.githubusercontent.com/73045b2f2294dee43d28dfc83294b378a518a86e256d491bd8f80b8c1df61186/68747470733a2f2f706f7365722e707567782e6f72672f6e616475766b6f2f796969322d656e68616e6365642d6769692f6c6963656e7365)](https://packagist.org/packages/naduvko/yii2-enhanced-gii)

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)

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

[](#installation)

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

Either run

```
$ composer require naduvko/yii2-enhanced-gii:dev-master
```

or add

```
"naduvko/yii2-enhanced-gii": "dev-master",

```

> add `"kartik-v/yii2-mpdf": "dev-master",` if you want to use pdf exporter

> add `"kartik-v/yii2-tree-manager": "dev-master",` if you want to use tree/nested relation table

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

> I separate the mpdf &amp; tree-manager because the package is big &amp; not everyone will use it.

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

```
'modules' => [
... //your another module
      'gridview' => [
          'class' => '\kartik\grid\Module',
          // see settings on http://demos.krajee.com/grid#module
      ],
      'datecontrol' => [
          'class' => '\kartik\datecontrol\Module',
          // see settings on http://demos.krajee.com/datecontrol#module
      ],
      // If you use tree table
      'treemanager' =>  [
          'class' => '\kartik\tree\Module',
          // see settings on http://demos.krajee.com/tree-manager#module
      ]
... // your another module
    ],
```

See gridview settings on

See datecontrol settings on

See treemanager settings on  (If you use tree/nested relation table)

Usage :
-------

[](#usage-)

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

Features
========

[](#features)

Model :
-------

[](#model-)

1. Generate optimistic lock
2. Generate Timestamp Behaviors
3. Generate Blameable Behavior
4. Generate UUID Behavior
5. Generate Soft Delete Behavior (NEW! Todo : Generate data filtering for relation data, e.g. not show deleted children of hasMany )

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

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 ()

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 89% 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 ~57 days

Recently: every ~90 days

Total

8

Last Release

3553d ago

Major Versions

0.0.9 → v1.0.02016-08-20

### Community

Maintainers

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

---

Top Contributors

[![mootensai](https://avatars.githubusercontent.com/u/5844149?v=4)](https://github.com/mootensai "mootensai (235 commits)")[![naduvko](https://avatars.githubusercontent.com/u/615788?v=4)](https://github.com/naduvko "naduvko (23 commits)")[![gvasilopulos](https://avatars.githubusercontent.com/u/7271039?v=4)](https://github.com/gvasilopulos "gvasilopulos (2 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (1 commits)")[![cgernert](https://avatars.githubusercontent.com/u/17023559?v=4)](https://github.com/cgernert "cgernert (1 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/naduvko-yii2-enhanced-gii/health.svg)

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

Yii2 Queue Extension which supports queues based on DB, Redis, RabbitMQ, Beanstalk, SQS, and Gearman

1.1k10.4M155](/packages/yiisoft-yii2-queue)

PHPackages © 2026

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