ijuniorfu / yii2-swagger
swagger intergation with yii2
v4.0.1
2022-03-11 05:22 UTC
Requires
- php: >=8.1.0
- swagger-api/swagger-ui: ^4.1
- yiisoft/yii2: ^2.0.0
- zircote/swagger-php: ^4.0
This package is auto-updated.
Last update: 2025-03-11 11:35:53 UTC
README
Yii2 Swagger Extension
swagger-php intergation with yii2.
Integration swagger-ui with swagger-php.
Installation
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.
Usage
Configure as below:
$config['modules']['swagger'] = [
'class' => 'Junior\Yii2Swagger\Module',
'scanDir' => [
'@app/controllers',
'@app/models',
],
];
Finally
If there also some confused, you can refer the Demo.