wsl / gii
The Gii extension for the Yii framework
v1.1.0
2021-05-24 15:26 UTC
Requires
- phpspec/php-diff: ^1.1.0
- yiisoft/yii2: ~2.0.14
Requires (Dev)
README
Gii Extension for Yii 2
生成带swagger注释
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --dev --prefer-dist wsl/wslgii
or add
"wsl/wslgii": "*"
to the require-dev section of your composer.json file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
return [ 'bootstrap' => ['gii'], 'modules' => [ 'gii' => [ 'class' => 'wsl\gii\Module', ], // ... ], // ... ];