PHPackages                             paveljanda/php-openapi-specificaion-expander - 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. paveljanda/php-openapi-specificaion-expander

ActiveLibrary[API Development](/categories/api)

paveljanda/php-openapi-specificaion-expander
============================================

Script that recursively expands references in OpenAPI specification

v3.0.1(6y ago)06MITPHPPHP ^7.3

Since Nov 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/paveljanda/php-openapi-specificaion-expander)[ Packagist](https://packagist.org/packages/paveljanda/php-openapi-specificaion-expander)[ RSS](/packages/paveljanda-php-openapi-specificaion-expander/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/44bd162ca5735a61244d5df24d077cba0d21fbc841b7ff8064fcb16f5e7409f6/68747470733a2f2f7472617669732d63692e6f72672f706176656c6a616e64612f7068702d6f70656e6170692d737065636966696361696f6e2d657870616e6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/paveljanda/php-openapi-specificaion-expander)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9957ca01e6d7a2c5e6f3bce487e61e4865ce4711fc818b06ea1601450f172dda/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706176656c6a616e64612f7068702d6f70656e6170692d737065636966696361696f6e2d657870616e6465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/paveljanda/php-openapi-specificaion-expander/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/2544f1346f07bf79aae057cb2e81f894bf944b8ef330c3fc0cd615f0e85f30e8/68747470733a2f2f706f7365722e707567782e6f72672f706176656c6a616e64612f7068702d6f70656e6170692d737065636966696361696f6e2d657870616e6465722f762f737461626c65)](https://packagist.org/packages/paveljanda/php-openapi-specificaion-expander)[![License](https://camo.githubusercontent.com/7c698a268b8200f78e7017ef211a8bacdd06b063b7fab92723c792fe0dd1f0a7/68747470733a2f2f706f7365722e707567782e6f72672f706176656c6a616e64612f7068702d6f70656e6170692d737065636966696361696f6e2d657870616e6465722f6c6963656e7365)](https://packagist.org/packages/paveljanda/php-openapi-specificaion-expander)[![Total Downloads](https://camo.githubusercontent.com/00156c75fcb44759ed8cf5398c86b61f70866db8a9ee51eba1a26c0234edf115/68747470733a2f2f706f7365722e707567782e6f72672f706176656c6a616e64612f7068702d6f70656e6170692d737065636966696361696f6e2d657870616e6465722f646f776e6c6f616473)](https://packagist.org/packages/paveljanda/php-openapi-specificaion-expander)

paveljanda/php-openapi-specificaion-expander
============================================

[](#paveljandaphp-openapi-specificaion-expander)

This tool let's you expand recursively definitions in open api specifiation (JSON/YAML)

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

[](#installation)

```
composer require paveljanda/php-openapi-specificaion-expander
```

Example - YAML
--------------

[](#example---yaml)

```
require __DIR__ . '/vendor/autoload.php';

use PavelJanda\OpenAPIExpander\OpenAPIExpander;
use Symfony\Component\Yaml\Yaml;

$specData = Yaml::parseFile(__DIR__ . '/openapiv3.yaml');

$expandedData = (new OpenAPIExpander)->expand($specData);

echo Yaml::dump($expandedData, 100, 2);
```

Example - JSON
--------------

[](#example---json)

```
require __DIR__ . '/vendor/autoload.php';

use PavelJanda\OpenAPIExpander\OpenAPIExpander;

$specData = json_decode(file_get_contents(__DIR__ . '/openapiv3.json'));

$expandedData = (new OpenAPIExpander)->expand($specData);

echo json_encode($expandedData, JSON_PRETTY_PRINT);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2362d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1488874?v=4)[Pavel Janda](/maintainers/paveljanda)[@paveljanda](https://github.com/paveljanda)

---

Top Contributors

[![paveljanda](https://avatars.githubusercontent.com/u/1488874?v=4)](https://github.com/paveljanda "paveljanda (9 commits)")

---

Tags

openapireferencesopen-apiexpandexpander

### Embed Badge

![Health badge](/badges/paveljanda-php-openapi-specificaion-expander/health.svg)

```
[![Health](https://phpackages.com/badges/paveljanda-php-openapi-specificaion-expander/health.svg)](https://phpackages.com/packages/paveljanda-php-openapi-specificaion-expander)
```

###  Alternatives

[swagger-api/swagger-ui

 Swagger UI is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.

28.7k45.4M99](/packages/swagger-api-swagger-ui)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.0k7.8M57](/packages/dedoc-scramble)[cebe/php-openapi

Read and write OpenAPI yaml/json files and make the content accessable in PHP objects.

49815.4M86](/packages/cebe-php-openapi)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3372.3M3](/packages/darkaonline-swagger-lume)

PHPackages © 2026

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