dyonis / yii2-swagger
OA3 swagger module for Yii2
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/dyonis/yii2-swagger
Requires
- bower-asset/swagger-ui: ^4.0
This package is auto-updated.
Last update: 2025-10-06 16:40:36 UTC
README
OA3 Swagger module for Yii2
Integration swagger-ui with Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dyonis/yii2-swagger "~1.0" --dev
or add
"dyonis/yii2-swagger": "~1.0"
to the require section of your composer.json file.
Usage
Add to your application config:
'modules'=>[
    ...
   'swagger'=> [
       'class' => \dyonis\yii2\swagger\Module::class,
       'apiDoc' => '@app/modules/api/v1/doc/swagger.yml',
       'cacheDuration' => 1,
   ],
],