ijuniorfu / yii2-swagger
swagger intergation with yii2
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ijuniorfu/yii2-swagger
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-10-11 13:01:28 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.