PHPackages                             svycka/swagger-middleware - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. svycka/swagger-middleware

ActiveLibrary[HTTP &amp; Networking](/categories/http)

svycka/swagger-middleware
=========================

Generate and display your API documentation with Swagger from your source code.

0.3.0(4y ago)49.5k↓85.7%[1 PRs](https://github.com/svycka/swagger-middleware/pulls)MITPHPPHP ^7.1 || ^8.0CI failing

Since Sep 19Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (10)Versions (9)Used By (0)

swagger-middleware
==================

[](#swagger-middleware)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a038edeba3f2b58845907df8cc6fcb1acdeace05c3f173ed448731a5f534305c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737679636b612f737761676765722d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/svycka/swagger-middleware)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7e8a0453c19d226b304eb6218ddf6b6f350d362ca6eb146303918adf81e6a5a6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f737679636b612f737761676765722d6d6964646c65776172652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/svycka/swagger-middleware)[![Coverage Status](https://camo.githubusercontent.com/63c9806a25ac174a5da1a408bb24cce6ceba7f6a90a27086c5c991de52ec7840/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f737679636b612f737761676765722d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/svycka/swagger-middleware/code-structure)[![Quality Score](https://camo.githubusercontent.com/9ff1a911fba42083f9928cedf562c2e1d38c769f43e5dd72b6702255ecfd172d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f737679636b612f737761676765722d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/svycka/swagger-middleware)[![Total Downloads](https://camo.githubusercontent.com/d3ea1b4af101678e52b9042b5936f447fb16f418fadb819daf52777b3d1953a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737679636b612f737761676765722d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/svycka/swagger-middleware)

Generate and display your API documentation with Swagger from your source code. This package is a wrapper of [Swagger-php](https://github.com/zircote/swagger-php) and [swagger-ui](https://github.com/swagger-api/swagger-ui).

Install
-------

[](#install)

Via Composer

```
$ composer require svycka/swagger-middleware
```

Usage
-----

[](#usage)

```
// TODO
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Vytautas Stankus](https://github.com/svycka)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

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

Every ~348 days

Recently: every ~436 days

Total

6

Last Release

1465d ago

PHP version history (2 changes)0.1.0PHP ^7.1

0.3.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e0ab73cb83a2ef230038f67af23225940abc7ae809817d52c8445b43710d4ed?d=identicon)[svycka](/maintainers/svycka)

---

Top Contributors

[![svycka](https://avatars.githubusercontent.com/u/1270782?v=4)](https://github.com/svycka "svycka (20 commits)")

---

Tags

documentationmiddlewareswaggerzend-expressivepsr-7PSR-11documentationswaggerpsr-15PSR-4PSR-2zend-expressiveswagger-middleware

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/svycka-swagger-middleware/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[typo3/cms-core

TYPO3 CMS Core

3713.2M5.1k](/packages/typo3-cms-core)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.6k10](/packages/sunrise-http-router)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M125](/packages/mezzio-mezzio)

PHPackages © 2026

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