yiisoft/yii-gii


CA CE CIS DIT
    Yiisoft\Yii\Gii\CodeFile 7 5 10 2
    Yiisoft\Yii\Gii\Generator 3 9 29 2
    Yiisoft\Yii\Gii\GiiAsset 0 0 4 2
    Yiisoft\Yii\Gii\Module 3 15 7 2
    Yiisoft\Yii\Gii\Components\ActiveField 0 4 8 2
    Yiisoft\Yii\Gii\Components\DiffRendererHtmlInline 1 0 1 2
    Yiisoft\Yii\Gii\Console\GenerateAction 1 3 3 2
    Yiisoft\Yii\Gii\Console\GenerateController 2 4 15 2
    Yiisoft\Yii\Gii\Controllers\DefaultController 0 6 9 2
    Yiisoft\Yii\Gii\Generators\Controller\Generator 1 5 19 3
    Yiisoft\Yii\Gii\Generators\Crud\Generator 1 12 32 3
    Yiisoft\Yii\Gii\Generators\Extension\Generator 1 2 24 3
    Yiisoft\Yii\Gii\Generators\Form\Generator 1 2 15 3
    Yiisoft\Yii\Gii\Generators\Model\Generator 1 10 33 3
    Yiisoft\Yii\Gii\Generators\Module\Generator 1 4 13 3
CA (Afferent Coupling)
Number of unique incoming dependencies from other artifacts of the same type.
CE (Efferent Coupling)
Number of unique outgoing dependencies to other artifacts of the same type.
CID (Class Interface Size)
Number of non private methods and properties of a class: CIS = public(NOM + VARS)
Measures the size of the interface from other parts of the system to a class.
Depth of Inheritance Tree
Depth of inheritance to root class
{
    "name": "yiisoft/yii-gii",
    "type": "library",
    "description": "Yii Framework Code Generator Extension",
    "keywords": ["yii", "gii", "code generator"],
    "license": "BSD-3-Clause",
    "support": {
        "source": "https://github.com/yiisoft/yii-gii",
        "issues": "https://github.com/yiisoft/yii-gii/issues",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii"
    },
    "authors": [
        {
            "name": "Qiang Xue",
            "email": "qiang.xue@gmail.com"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "yiisoft/yii-core": "^3.0@dev",
        "phpspec/php-diff": "^1.1.0",
        "yiisoft/strings": "^3.0@dev",
        "yiisoft/var-dumper": "^3.0@dev"
    },
    "require-dev": {
        "yiisoft/di": "^3.0@dev",
        "yiisoft/log": "^3.0@dev",
        "yiisoft/cache": "^3.0@dev",
        "phpunit/phpunit": "^7.3",
        "hiqdev/composer-config-plugin": "^1.0@dev",
        "yiisoft/db": "^3.0@dev",
        "yiisoft/db-sqlite": "^3.0@dev",
        "yiisoft/db-pgsql": "^3.0@dev",
        "yiisoft/active-record": "^3.0@dev",
        "yiisoft/view": "^3.0@dev",
        "yiisoft/yii-web": "^3.0@dev"
    },
    "autoload": {
        "psr-4": {
            "Yiisoft\\Yii\\Gii\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Yiisoft\\Yii\\Gii\\Tests\\": "tests"
        }
    },
    "extra": {
        "branch-alias": {
            "dev-master": "3.0.x-dev"
        },
        "config-plugin": {
            "tests": "config/tests.php"
        }
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}
yiisoft/yii-gii dependencies

Gii Extension for Yii


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

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version Total Downloads Build Status

Installation

The preferred way to install this extension is through composer.

composer require --prefer-dist yiisoft/yii-gii

Usage

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

return [
    'bootstrap' => ['gii'],
    'modules' => [
        'gii' => [
            '__class' => Yiisoft\Yii\Gii\Module::class,
        ],
        // ...
    ],
    // ...
];

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