PHPackages                             breadhead/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. breadhead/yii2-swagger

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

breadhead/yii2-swagger
======================

Swagger Documentation Generator for Yii2 Framework with swagger v3.0

1.4.2(6y ago)01.5k↓50%2MITPHPPHP &gt;=7.1.0

Since Oct 14Pushed 6y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (5)Versions (6)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/79377defa16a16cffebecd67298366a60730fef0442ec2ab3432a8be60a8bb90/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d737761676765722f762f737461626c65)](https://packagist.org/packages/yii2mod/yii2-swagger)[![Total Downloads](https://camo.githubusercontent.com/699c8d69d63dcdfe6e048ee5f498c5a6b23a7aa89362f1228364e5db5c8fb021/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d737761676765722f646f776e6c6f616473)](https://packagist.org/packages/yii2mod/yii2-swagger)[![License](https://camo.githubusercontent.com/c1a50cc32336b1e41379146850aced5e42683412793c6b542875f1d0fd34f3ff/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d737761676765722f6c6963656e7365)](https://packagist.org/packages/yii2mod/yii2-swagger)[![Build Status](https://camo.githubusercontent.com/c27471e529431984aff80f29f13c4c6f39d6b62ff62ffe1fabeb38a7d55eb05d/68747470733a2f2f7472617669732d63692e6f72672f796969326d6f642f796969322d737761676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yii2mod/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 breadhead/yii2-swagger "*"

```

or add

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

```

to the require section of your composer.json.

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

[](#configuration)

You need to configure two actions as follows:

```
