kekaadrenalin / yii2-swagger
yii2 swagger3.0
v1.0.8
2023-05-29 14:08 UTC
Requires
- php: >=7.1
- ext-json: *
- zircote/swagger-php: ^3.0.0
Requires (Dev)
- yiisoft/yii2: ^2.0
README
First, please make sure you have some basic concepts of Swagger OpenAPI and Swagger UI.
Then you can start with following steps:
- Install
kekaadrenalin/yii2-swagger
extension
composer require kekaadrenalin/yii2-swagger --dev
- Add following lines to
config/web.php
//config/web.php $config = [ ... 'modules' => [ 'swagger' => [ 'class' => 'kekaadrenalin\swagger\Module', ], ], ... ]
- Add following lines to
config/params.php
'swagger'=>[ 'scan_dir'=>[ 'app/controllers', ] ]