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

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

machour/yii2-swagger-ui
=======================

Yii 2 Swagger UI

1.0.0(10y ago)33.4k1MITPHP

Since Nov 15Pushed 9y ago1 watchersCompare

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

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

[Swagger UI](http://swagger.io/swagger-ui/) assets for 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 machour/yii2-swagger-ui "*"

```

or add

```
"machour/yii2-swagger-ui": "*"

```

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:

```
machour\yii2\swagger\ui\SwaggerUiAsset::register($this);
```

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

This documentation is available [online](http://machour.idk.tn/yii/machour/yii2-swagger-ui)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50430982793b695a5a9a886a81b976606c71062b49cf38c12509801b1845b1b2?d=identicon)[machour](/maintainers/machour)

---

Top Contributors

[![machour](https://avatars.githubusercontent.com/u/304450?v=4)](https://github.com/machour "machour (6 commits)")

---

Tags

uiswaggeryii2

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[light/yii2-swagger

swagger intergation with yii2

153850.4k4](/packages/light-yii2-swagger)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3362.4M3](/packages/darkaonline-swagger-lume)[ignatenkovnikita/yii2-swagger

Swagger UI v3 intergation with yii2

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

PHPackages © 2026

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