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

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

yarcode/yii2-swagger
====================

Swagger intergation with Yii2

0.1(9y ago)1891MITPHP

Since Dec 5Pushed 9y ago3 watchersCompare

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

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

yii2-swagger
============

[](#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 yarcode/yii2-swagger

```

or add

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

Usage
-----

[](#usage)

TODO: It should be described in detail.

```
public function init()
{
    $this->controllerMap = [
        'swagger' => [
            'class' => 'YarCode\Yii2\Swagger\SwaggerController',
            'host' => 'http://some.host',
            'basePath' => '/base/path/to/swagger/doc',,
            'templateFile' => '/@api/path/to/swagger/template.yaml',
            'includePaths' => [
                '/include/path/first',
                '/include/path/second',
            ],
        ]
    ];
    parent::init();
}
```

License
-------

[](#license)

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

Copyright (c) 2016 lichunqiang, YarCode

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3442d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1297270?v=4)[Vahid G](/maintainers/lagman)[@lagman](https://github.com/lagman)

---

Top Contributors

[![lavros](https://avatars.githubusercontent.com/u/12123543?v=4)](https://github.com/lavros "lavros (1 commits)")

---

Tags

swaggeryii2extensionrestfuldocument

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/yarcode-yii2-swagger/health.svg)](https://phpackages.com/packages/yarcode-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)
