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

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

hjp1011/yii2-gii
================

The Gii extension for the Yii framework

1.0.0(3y ago)0281BSD-3-ClausePHP

Since Feb 6Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Yii2-gii extension
==================

[](#yii2-gii-extension)

The Gii extension for the Yii framework,This extension provides a Web-based code generator, called Gii, for \[Yii framework 2.0\] applications. You can use Gii to quickly generate models, forms, modules, CRUD, etc.

[![Latest Stable Version](https://camo.githubusercontent.com/35375bc22353286b6c6961efc044bb25c4cd59a0f1806bcf91dd8860205310d9/687474703a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d6769692f76)](https://packagist.org/packages/hjp1011/yii2-gii) [![Total Downloads](https://camo.githubusercontent.com/8861be9c7653d7b02553d67071de5a83f7d6a7e5582f225007d5bf433045838e/687474703a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d6769692f646f776e6c6f616473)](https://packagist.org/packages/hjp1011/yii2-gii) [![Latest Unstable Version](https://camo.githubusercontent.com/5ba76aad6b5d915c891b8d45ccad5e04decef3affe6c70bceb769ea9f24c87cb/687474703a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d6769692f762f756e737461626c65)](https://packagist.org/packages/hjp1011/yii2-gii) [![License](https://camo.githubusercontent.com/fa8a579f2a5cb46acb5e1ceddb6ee06254431f65b8279a0059a1cf3fbb8ab819/687474703a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d6769692f6c6963656e7365)](https://packagist.org/packages/hjp1011/yii2-gii) [![PHP Version Require](https://camo.githubusercontent.com/d0ba006724bfed0ccc09644b8e35d7fa24046aef497e581e82e5df349d61217c/687474703a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d6769692f726571756972652f706870)](https://packagist.org/packages/hjp1011/yii2-gii)

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

[](#installation)

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

Either run

```
php composer.phar require --dev --prefer-dist hjp1011/yii2-gii

```

or add

```
"hjp1011/yii2-gii": "~2.1.0"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'bootstrap' => ['gii'],
    'modules' => [
        'gii' => [
            'class' => 'yiiframe\gii\Module',
        ],
        // ...
    ],
    // ...
];
```

You can then access Gii through the following URL:

```
http://localhost/path/to/index.php?r=gii

```

or if you have enabled pretty URLs, you may use the following URL:

```
http://localhost/path/to/index.php/gii

```

Using the same configuration for your console application, you will also be able to access Gii via command line as follows,

```
# change path to your application's base path
cd path/to/AppBasePath

# show help information about Gii
yii help gii

# show help information about the model generator in Gii
yii help gii/model

# generate City model from city table
yii gii/model --tableName=city --modelClass=City

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3722805f06e7a49dc67f3ff1c7fac9239b9028169f0aa129b56f4ba641a8d14c?d=identicon)[YiiFrame](/maintainers/YiiFrame)

---

Top Contributors

[![hjp1011](https://avatars.githubusercontent.com/u/15049554?v=4)](https://github.com/hjp1011 "hjp1011 (12 commits)")

---

Tags

code generatoryii2gii

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-gii

The Gii extension for the Yii framework

21118.4M613](/packages/yiisoft-yii2-gii)

PHPackages © 2026

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