drdim / yii2-swagger-ui
Yii2 Swagger UI
Package info
github.com/drdim/yii2-swagger-ui
Type:yii2-extension
pkg:composer/drdim/yii2-swagger-ui
1.0.3
2017-07-14 07:36 UTC
Requires
- php: >=5.5.0
- bower-asset/swagger-ui: ^3.0
- yiisoft/yii2: ^2.0
This package is not auto-updated.
Last update: 2026-03-04 00:46:43 UTC
README
##Install
- The preferred way to install this extension is through composer.
Either run
php composer.phar require drdim/yii2-swagger-ui "~1.0"
or add
"drdim/yii2-swagger-ui": "~1.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, you can register the Swagger UI assets in your application by doing:
Drdim\Yii\Swagger\SwaggerUiAsset::register($this);
A complete layout structure is available in the src\views directory for a complete working Swagger UI interface like their Pet Store.