PHPackages                             wfelipew/swagger-module - 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. wfelipew/swagger-module

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

wfelipew/swagger-module
=======================

Zend Framework 2 Module for Swagger resource file generation

2.0(10y ago)04.6k—6.7%Apache-2.0PHPPHP &gt;=5.3.3

Since Jun 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/wfelipew/SwaggerModule)[ Packagist](https://packagist.org/packages/wfelipew/swagger-module)[ Docs](https://github.com/outeredge/SwaggerModule)[ RSS](/packages/wfelipew-swagger-module/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

SwaggerModule
=============

[](#swaggermodule)

A Zend Framework 2 module that allows the generation of Swagger compliant resource files and is based on [swagger-php](https://github.com/zircote/swagger-php).

Requirements
------------

[](#requirements)

- PHP 5.3 or higher
- [Zend Framework 2](http://www.github.com/zendframework/zf2)

Installation
------------

[](#installation)

Installation of SwaggerModule uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

#### Installation steps

[](#installation-steps)

1. `cd my/project/directory`
2. create a `composer.json` file with following contents:

    ```
    {
        "require": {
            "outeredge/swagger-module": "dev-master"
        }
    }
    ```
3. install composer via `curl -s http://getcomposer.org/installer | php` (on windows, download  and execute it with PHP)
4. run `php composer.phar install`
5. copy config/module.swagger.global.php.dist to your config/autoload folder and modify paths variable
6. open `my/project/directory/configs/application.config.php` and add the following key to your `modules`:

    ```
    'SwaggerModule',
    ```

Usage
-----

[](#usage)

See [swagger-php](https://github.com/zircote/swagger-php#readme) for library usage information.

```
$swagger = $this->getServiceLocator()->get('service.swagger');
echo $swagger->getResource('http://org.local/v1');
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.2% 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 ~1326 days

Total

2

Last Release

3794d ago

Major Versions

0.2 → 2.02016-02-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b228bec6ab19bd1005bd6a52a30ddab20a99ed7d9b1d13e23c62bc75e9fbb88?d=identicon)[wfelipew](/maintainers/wfelipew)

---

Top Contributors

[![davidwindell](https://avatars.githubusercontent.com/u/1720090?v=4)](https://github.com/davidwindell "davidwindell (23 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (5 commits)")[![alexdenvir](https://avatars.githubusercontent.com/u/1412074?v=4)](https://github.com/alexdenvir "alexdenvir (1 commits)")[![Trunst](https://avatars.githubusercontent.com/u/3854632?v=4)](https://github.com/Trunst "Trunst (1 commits)")[![wfelipew](https://avatars.githubusercontent.com/u/1345241?v=4)](https://github.com/wfelipew "wfelipew (1 commits)")

---

Tags

apirestswaggerzf2

### Embed Badge

![Health badge](/badges/wfelipew-swagger-module/health.svg)

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

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[outeredge/swagger-module

Laminas Framework Module for Swagger resource file generation

23113.1k](/packages/outeredge-swagger-module)[tartanlegrand/laravel-openapi

Generate OpenAPI Specification for Laravel Applications

38210.9k2](/packages/tartanlegrand-laravel-openapi)[vanderlee/swaggergen

Generate Swagger/OpenAPI documentation from simple PHPdoc-like comments in PHP source code.

42131.0k3](/packages/vanderlee-swaggergen)

PHPackages © 2026

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