PHPackages                             tanur/yii2-swagger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. tanur/yii2-swagger

ActiveYii2-extension[API Development](/categories/api)

tanur/yii2-swagger
==================

Swagger Documentation Generator for Yii2 Framework

4.1.2(3y ago)0986↓16.7%MITPHPPHP &gt;=7.1.0

Since Oct 14Pushed 3y agoCompare

[ Source](https://github.com/tanur/yii2-swagger)[ Packagist](https://packagist.org/packages/tanur/yii2-swagger)[ RSS](/packages/tanur-yii2-swagger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (8)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Swagger Documentation Generator for Yii2 Framework
==================================================

[](#swagger-documentation-generator-for-yii2-framework)

Swagger/OpenAPI Documentation Generator for Yii2 Framework.

[![Latest Stable Version](https://camo.githubusercontent.com/d875462dea115df065c8f66fdaef9d39bfd578a62ffb39bbc0750ba104a1ad06/68747470733a2f2f706f7365722e707567782e6f72672f74616e75722f796969322d737761676765722f762f737461626c65)](https://packagist.org/packages/tanur/yii2-swagger)[![Total Downloads](https://camo.githubusercontent.com/224c6dd8196d385962033f0be3a581d097c71d3c675c83b20611efeb2c9d35c1/68747470733a2f2f706f7365722e707567782e6f72672f74616e75722f796969322d737761676765722f646f776e6c6f616473)](https://packagist.org/packages/tanur/yii2-swagger)[![License](https://camo.githubusercontent.com/72a11add7254d000ce935c2064ab18b38f137566a18f4b4615b4d428d9779d36/68747470733a2f2f706f7365722e707567782e6f72672f74616e75722f796969322d737761676765722f6c6963656e7365)](https://packagist.org/packages/tanur/yii2-swagger)[![Build Status](https://camo.githubusercontent.com/b7ae409d4855744432cba03c4c68a41af2c91daa02abf15752076e10155b0097/68747470733a2f2f7472617669732d63692e6f72672f74616e75722f796969322d737761676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tanur/yii2-swagger)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist tanur/yii2-swagger "*"

```

or add

```
"tanur/yii2-swagger": "*"

```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

You need to configure two actions as follows:

```
