swagger-php intergation with yii2.
Integration swagger-ui with swagger-php.
The preferred way to install this extension is through composer.
Either run
composer require ijuniorfu/yii2-swagger
or add
"ijuniorfu/yii2-swagger": "~3.0.0"
to the require section of your composer.json
file.
Configure as below:
$config['modules']['swagger'] = [
'class' => 'Junior\Yii2Swagger\Module',
'scanDir' => [
'@app/controllers',
'@app/models',
],
];
If there also some confused, you can refer the Demo.