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

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

drdim/yii2-swagger-ui
=====================

Yii2 Swagger UI

1.0.3(8y ago)03.4kMITPHPPHP &gt;=5.5.0

Since Nov 22Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (0)

Yii2 Component for Swagger-UI
=============================

[](#yii2-component-for-swagger-ui)

\##Install

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

Either run

```
php composer.phar require  drdim/yii2-swagger-ui "~1.0"

```

or add

```
"drdim/yii2-swagger-ui": "~1.0"

```

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

Usage
-----

[](#usage)

Once the extension is installed, you can register the Swagger UI assets in your application by doing:

```
Drdim\Yii\Swagger\SwaggerUiAsset::register($this);
```

A complete layout structure is available in the `src\views` directory for a complete working Swagger UI interface like their [Pet Store](http://petstore.swagger.io/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~78 days

Total

4

Last Release

3224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f362862aa57455e27b03cc59b5b642ce7c4047ec1790058d0b8c98fee2660a2?d=identicon)[drdim](/maintainers/drdim)

---

Top Contributors

[![drdim](https://avatars.githubusercontent.com/u/668298?v=4)](https://github.com/drdim "drdim (4 commits)")[![veksa](https://avatars.githubusercontent.com/u/6467881?v=4)](https://github.com/veksa "veksa (3 commits)")

---

Tags

phpswaggeryii2extensioncomponentswagger-ui

### Embed Badge

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

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

###  Alternatives

[light/yii2-swagger

swagger intergation with yii2

154801.6k4](/packages/light-yii2-swagger)[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

42867.3k](/packages/harmbandstra-swagger-ui-bundle)[ignatenkovnikita/yii2-swagger

Swagger UI v3 intergation with yii2

128.0k](/packages/ignatenkovnikita-yii2-swagger)

PHPackages © 2026

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