Skip to content

dyonis/yii2-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OA3 Swagger module for Yii2


version Download Issues

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,
   ],
],

License

MIT

About

OA3 Swagger module for Yii2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages