/yii2-swagger-generator

A Yii2 generator for RESTful API documentation with yii2-swagger

Primary LanguagePHP

Yii2 Swagger Generator

A Yii2 generator for RESTful API documentation with yii2-swagger

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ddroche/yii2-swagger-generator "*"

or add

"ddroche/yii2-swagger-generator": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \ddroche\swaggergenerator\AutoloadExample::widget(); ?>```