Skip to content

ijuniorfu/yii2-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Swagger Extension


version Download Issues

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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages