ijuniorfu/yii2-swagger

swagger intergation with yii2

v4.0.1 2022-03-11 05:22 UTC

This package is auto-updated.

Last update: 2024-04-11 09:47:01 UTC


README

993323

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