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. [API Development](/categories/api)
4. /
5. epfremme/swagger-php

ActivePackage[API Development](/categories/api)

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

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

v2.0.0(9y ago)321.4M↑1355.2%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 yesterday

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

41

—

FairBetter than 87% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity48

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

3567d 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.5k5.9M738](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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