mdmsoft/yii2-gii Yii2 custom generator for gii

gii

yii2-generators

Yii2 custom generator

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require mdmsoft/yii2-gii "~1.0"

or add

"mdmsoft/yii2-gii": "~1.0"

to the require section of your composer.json file.

Usage

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

...
if (!YII_ENV_TEST) {
//     configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'crud' => ['class' => 'mdm\gii\generators\crud\Generator'],
            'mvc' => ['class' => 'mdm\gii\generators\mvc\Generator'],
            'migration' => ['class' => 'mdm\gii\generators\migration\Generator'],
        ]
    ];
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.0 is the latest of 2 releases



BSD-3-Clause license
Stats
13 github stars & 15 github forks
1 downloads in the last day
5 downloads in the last 30 days
30104 total downloads