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

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

nhockizi/yii2-gii
=================

Yii2 custom generator for gii

034PHP

Since Dec 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nhockizi/yii2-gii)[ Packagist](https://packagist.org/packages/nhockizi/yii2-gii)[ RSS](/packages/nhockizi-yii2-gii/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-double-model-gii
=====================

[](#yii2-double-model-gii)

This generator generates two ActiveRecord class for the specified database table. An empty one you can extend and a Base one which is the same as the original model generatior.

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

[](#installation)

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

Either run

```
$ php composer.phar require "nhockizi/yii2-gii": "dev-master"

```

or add

```
"nhockizi/yii2-gii": "dev-master"

```

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

Usage
-----

[](#usage)

```
//if your gii modules configuration looks like below:
    $config['modules']['gii'] = 'yii\gii\Module';

//remove this lines
```

```
//Add this into common/config/main-local.php
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'Generator Model' => [
                'class' => 'nhockizi\gii\generators\model\Generator',
            ],
            'Generator Crud' => [
                'class'     => 'nhockizi\gii\generators\backend\Generator',
            ],
            'Generator Setup' => [
                'class'     => 'nhockizi\gii\generators\setup\Generator',
            ],
        ],
    ];
```

// create .htaccess in root files

prevent directory listings
==========================

[](#prevent-directory-listings)

Options -Indexes IndexIgnore */*

follow symbolic links
=====================

[](#follow-symbolic-links)

Options FollowSymlinks

RewriteEngine on RewriteRule ^admin(.+)?$ backend/web/$1 \[L,PT\] RewriteRule ^(.+)?$ frontend/web/$1

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13411894?v=4)[NhocKizi](/maintainers/nhockizi)[@nhockizi](https://github.com/nhockizi)

---

Top Contributors

[![nhockizi](https://avatars.githubusercontent.com/u/13411894?v=4)](https://github.com/nhockizi "nhockizi (28 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M831](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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