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

ActiveLibrary[API Development](/categories/api)

dyonis/yii2-swagger
===================

OA3 swagger module for Yii2

1.0(3y ago)2211MITPHP

Since Aug 6Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

OA3 Swagger module for Yii2
===========================

[](#oa3-swagger-module-for-yii2)

[![version](https://camo.githubusercontent.com/4c46a762692ac42b63bca28a096bd37d84d3879b83f6ea3cabb007d131958746/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796f6e69732f796969322d737761676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dyonis/yii2-swagger)[![Download](https://camo.githubusercontent.com/ef663a09c5531f510f3f6eefbf02c871a218a8f4b463d85581f5d5dae5b69fcf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64796f6e69732f796969322d737761676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dyonis/yii2-swagger)[![Issues](https://camo.githubusercontent.com/9f3d5a996fdcd7cb53beca06b80c177ffb61a64ab73bb8129b712d5c70ca96f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f64796f6e69732f796969322d737761676765722e7376673f7374796c653d666c61742d737175617265)](https://github.com/dyonis/yii2-swagger/issues)

Integration [swagger-ui](https://github.com/swagger-api/swagger-ui) with Yii2.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist dyonis/yii2-swagger "~1.0" --dev

```

or add

```
"dyonis/yii2-swagger": "~1.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Add to your application config:

```
'modules'=>[
    ...
   'swagger'=> [
       'class' => \dyonis\yii2\swagger\Module::class,
       'apiDoc' => '@app/modules/api/v1/doc/swagger.yml',
       'cacheDuration' => 1,
   ],
],

```

License
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1373d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2c91933f229f70c152a36cf1110be2988bbcabbb2e79d4f9d642ec1584dd3ce?d=identicon)[dyonis](/maintainers/dyonis)

---

Tags

swaggeryii2extensionrestfuldocumentOA3

### Embed Badge

![Health badge](/badges/dyonis-yii2-swagger/health.svg)

```
[![Health](https://phpackages.com/badges/dyonis-yii2-swagger/health.svg)](https://phpackages.com/packages/dyonis-yii2-swagger)
```

###  Alternatives

[light/yii2-swagger

swagger intergation with yii2

154801.6k4](/packages/light-yii2-swagger)[ignatenkovnikita/yii2-swagger

Swagger UI v3 intergation with yii2

128.0k](/packages/ignatenkovnikita-yii2-swagger)[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
