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

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

machour/yii2-swagger-api
========================

Yii 2 Swagger API

14803[4 issues](https://github.com/machour/yii2-swagger-api/issues)PHP

Since Apr 11Pushed 9y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

This module will generate your swagger JSON file by parsing your controllers and models docblocks.

TODO
----

[](#todo)

- Finish the docblock parsing
- Add Auth mechanisms
- Add API versions support
- Clear cache based on filemtime()
- Test required parameters &amp; their types
- Documentation

Further reading
---------------

[](#further-reading)

More documentation

- [Swagger](http://swagger.io/) - The swagger web site

Useful links

- [yii2-rest](http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html)
- [Swagger Editor](http://editor.swagger.io/) - You can use this to generate a client from your swagger configuration file

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### 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 (27 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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