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

ActiveLibrary[API Development](/categories/api)

ijuniorfu/yii2-swagger
======================

swagger intergation with yii2

v4.0.1(4y ago)110MITPHPPHP &gt;=8.1.0

Since Mar 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ijuniorfu/yii2-swagger)[ Packagist](https://packagist.org/packages/ijuniorfu/yii2-swagger)[ RSS](/packages/ijuniorfu-yii2-swagger/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

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

Yii2 Swagger Extension
======================

[](#yii2-swagger-extension)

[![version](https://camo.githubusercontent.com/50bb3f1cd64ead96a661fb32afdfbec5181fa8f00747339e35aa129434afd00b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696a756e696f7266752f796969322d737761676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ijuniorfu/yii2-swagger)[![Download](https://camo.githubusercontent.com/bea019d85c122f9aeea78587e930e278c45468c92c004e3303e2d7242587da84/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696a756e696f7266752f796969322d737761676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ijuniorfu/yii2-swagger)[![Issues](https://camo.githubusercontent.com/9bdd217cd62c02e42b3bcf7218254b41006dd4dee85ac4878659f4c62a7f44ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f696a756e696f7266752f796969322d737761676765722e7376673f7374796c653d666c61742d737175617265)](https://github.com/ijuniorfu/yii2-swagger/issues)

[swagger-php](https://github.com/zircote/swagger-php) intergation with yii2.

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

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

[](#installation)

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

Either run

```
composer require ijuniorfu/yii2-swagger

```

or add

```
"ijuniorfu/yii2-swagger": "~3.0.0"

```

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

Usage
-----

[](#usage)

Configure as below:

```
$config['modules']['swagger'] = [
    'class' => 'Junior\Yii2Swagger\Module',
    'scanDir' => [
        '@app/controllers',
        '@app/models',
    ],
];

```

Finally
-------

[](#finally)

**If there also some confused, you can refer the [Demo](https://github.com/lichunqiang/yii2-swagger-demo).**

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~0 days

Total

2

Last Release

1524d ago

Major Versions

v3.0.1 → v4.0.12022-03-11

PHP version history (2 changes)v3.0.1PHP &gt;=7.1.0

v4.0.1PHP &gt;=8.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3910125?v=4)[junior](/maintainers/ijuniorfu)[@ijuniorfu](https://github.com/ijuniorfu)

---

Top Contributors

[![ijuniorfu](https://avatars.githubusercontent.com/u/3910125?v=4)](https://github.com/ijuniorfu "ijuniorfu (7 commits)")

---

Tags

swaggeryii2extensionrestfuldocument

### Embed Badge

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

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

###  Alternatives

[light/yii2-swagger

swagger intergation with yii2

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

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[ignatenkovnikita/yii2-swagger

Swagger UI v3 intergation with yii2

128.0k](/packages/ignatenkovnikita-yii2-swagger)[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)
