machour / yii2-swagger-ui
Yii 2 Swagger UI
Installs: 3 445
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/swagger-ui: dev-master
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-16 03:06:06 UTC
README
Swagger UI assets for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist machour/yii2-swagger-ui "*"
or add
"machour/yii2-swagger-ui": "*"
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:
machour\yii2\swagger\ui\SwaggerUiAsset::register($this);
A complete layout structure is available in the views
directory for a complete working Swagger UI interface like their Pet Store.
This documentation is available online