veksa / yii2-swagger-ui
Yii2 Swagger UI
Package info
github.com/veksa/yii2-swagger-ui
Type:yii2-extension
pkg:composer/veksa/yii2-swagger-ui
v1.0.2
2016-11-22 10:39 UTC
Requires
- php: >=5.5.0
- bower-asset/components-underscore: *
- bower-asset/swagger-ui: 2.2.6
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-02-23 19:42:48 UTC
README
##Install
- The preferred way to install this extension is through composer.
Either run
php composer.phar require veksa/yii2-swagger-ui "~1.0"
or add
"veksa/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:
veksa\swagger\yii2\assets\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.