PHPackages                             hmaus/reynaldo - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. hmaus/reynaldo

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

hmaus/reynaldo
==============

Parse API Blueprint refract into a iterable PHP data structure for easier access

v0.1.7(5y ago)6117.7k↓11.1%8[1 PRs](https://github.com/hendrikmaus/reynaldo/pulls)4MITPHPPHP &gt;=7.0CI failing

Since Aug 30Pushed 5y ago5 watchersCompare

[ Source](https://github.com/hendrikmaus/reynaldo)[ Packagist](https://packagist.org/packages/hmaus/reynaldo)[ RSS](/packages/hmaus-reynaldo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (9)Used By (4)

Reynaldo
========

[](#reynaldo)

Turn API Blueprint Refract Parse Result (Drafter's output) into a traversable PHP data structure.

[![codecov.io](https://camo.githubusercontent.com/721dacd77e8d896d27aa9675f5729c10fd2743c15d8e873fbbcfea0717d2ff60/687474703a2f2f636f6465636f762e696f2f6769746875622f68656e6472696b6d6175732f7265796e616c646f2f636f7665726167652e7376673f6272616e63683d6d6173746572)](http://codecov.io/github/hendrikmaus/reynaldo?branch=master)[![Code Climate](https://camo.githubusercontent.com/390f06e2964f63b00d80f5bac1ed49db5433046b22d9c50b2379d38283774759/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f6b61626973616963742f666c6f772e737667)](https://codeclimate.com/github/hendrikmaus/reynaldo)

What is Reynaldo?
-----------------

[](#what-is-reynaldo)

It should ease the processing of [Drafter](https://github.com/apiaryio/drafter) refract output.

You read your Drafter parse result, either JSON or YAML, you convert that to a PHP assoc array, e.g. `json_decode($parseresult, true)` in PHP and pass it into `\Hmaus\Reynaldo\Parser\RefractParser::parse`.

Out comes an easily traversable object.

You can find a little example in `/example`.

```
// load file and json_decode as assoc array into $apiDescription

$parser = new RefractParser();
$parseResult = $parser->parse($apiDescription);
$api = $parseResult->getApi();

// try to get the API title `$api->getApiTitle();`
// or the document description in markdown `$api->getApiDocumentDescription();`

foreach ($parseResult->getApi()->getResourceGroups() as $apiResourceGroup) {

    foreach ($apiResourceGroup->getResources() as $apiResource) {

        foreach ($apiResource->getTransitions() as $apiStateTransition) {

            foreach ($apiStateTransition->getHttpTransactions() as $apiHttpTransaction) {
                // inspect `$apiHttpTransaction->getHttpRequest()`, `$apiHttpTransaction->getHttpResponse()`
            }
        }
    }
}
```

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

[](#requirements)

- PHP 7.0 or greater

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

[](#installation)

The recommended way to install is by using [composer](https://getcomposer.org):

```
$ composer require hmaus/reynaldo
```

This will install the PHP package with your application.

License
-------

[](#license)

Reynaldo is licensed under the MIT License - see the [LICENSE](https://github.com/hendrikmaus/reynaldo/blob/master/LICENSE) file for details.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~244 days

Recently: every ~328 days

Total

8

Last Release

1835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed0b339a154b415594b6480f1a0ee0ac45fd395033123ea484cfe78f29f13dae?d=identicon)[hendrikmaus](/maintainers/hendrikmaus)

![](https://avatars.githubusercontent.com/u/711773?v=4)[Michael Schmidt-Voigt](/maintainers/m165437)[@M165437](https://github.com/M165437)

---

Top Contributors

[![hendrikmaus](https://avatars.githubusercontent.com/u/188284?v=4)](https://github.com/hendrikmaus "hendrikmaus (40 commits)")[![drakakisgeo](https://avatars.githubusercontent.com/u/1863506?v=4)](https://github.com/drakakisgeo "drakakisgeo (5 commits)")[![etr-dan-breczinski](https://avatars.githubusercontent.com/u/32645713?v=4)](https://github.com/etr-dan-breczinski "etr-dan-breczinski (2 commits)")[![Grummfy](https://avatars.githubusercontent.com/u/668804?v=4)](https://github.com/Grummfy "Grummfy (2 commits)")[![M165437](https://avatars.githubusercontent.com/u/711773?v=4)](https://github.com/M165437 "M165437 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hmaus-reynaldo/health.svg)

```
[![Health](https://phpackages.com/badges/hmaus-reynaldo/health.svg)](https://phpackages.com/packages/hmaus-reynaldo)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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