PHPackages                             epfremme/swagger-php - 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. epfremme/swagger-php

ActivePackage

epfremme/swagger-php
====================

Library for parsing swagger documentation into PHP entities for use in testing and code generation

v2.0.0(9y ago)321.3M↑1043.8%10[2 issues](https://github.com/epfremmer/swagger-php/issues)[1 PRs](https://github.com/epfremmer/swagger-php/pulls)1MITPHPPHP &gt;=5.5

Since Jun 19Pushed 5y ago4 watchersCompare

[ Source](https://github.com/epfremmer/swagger-php)[ Packagist](https://packagist.org/packages/epfremme/swagger-php)[ RSS](/packages/epfremme-swagger-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (10)Used By (1)

Swagger PHP
===========

[](#swagger-php)

Library for parsing swagger documentation into PHP entities for use in testing and code generation

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

[](#installation)

- Require package `composer require epfremme/swagger-php`
- Install packages `composer install`

Basic Usage
-----------

[](#basic-usage)

Instantiate the swagger factory and pass it a valid swagger documentation file to parse:

```
use Epfremme\Swagger\Factory\SwaggerFactory;

$factory = new SwaggerFactory();
$swagger = $factory->build('/path/to/swagger/file.json');

// do stuff with your Swagger entity

```

Swagger Definitions
-------------------

[](#swagger-definitions)

Visit the swagger specification for more information on creating valid swagger json/yaml documentation

[swagger.io](http://swagger.io/specification)

Support
-------

[](#support)

Currently only swagger version 2.0 is supported in both JSON and YAML format

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~58 days

Recently: every ~112 days

Total

9

Last Release

3521d ago

Major Versions

v0.2.3 → v1.0.02016-02-27

v1.0.1 → v2.0.02016-09-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/676986caba2c215a2d21d09ec73a55fccbe180f9d9c511fc0d1753f2bfd05461?d=identicon)[epfremmer](/maintainers/epfremmer)

---

Top Contributors

[![epfremmer](https://avatars.githubusercontent.com/u/1810965?v=4)](https://github.com/epfremmer "epfremmer (11 commits)")[![mieszkomalawski](https://avatars.githubusercontent.com/u/22765488?v=4)](https://github.com/mieszkomalawski "mieszkomalawski (2 commits)")[![haroldiedema](https://avatars.githubusercontent.com/u/567518?v=4)](https://github.com/haroldiedema "haroldiedema (1 commits)")[![natebrunette](https://avatars.githubusercontent.com/u/1831497?v=4)](https://github.com/natebrunette "natebrunette (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/epfremme-swagger-php/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.3M18](/packages/horstoeko-zugferd)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)

PHPackages © 2026

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