PHPackages                             hskrasek/arazzo-parser - 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. hskrasek/arazzo-parser

ActiveLibrary[API Development](/categories/api)

hskrasek/arazzo-parser
======================

Parse Arazzo specifications into plain old PHP objects.

v0.1.2(1y ago)22[6 PRs](https://github.com/hskrasek/arazzo-parser/pulls)AGPL-3.0-or-laterPHPPHP ^8.4CI passing

Since Mar 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/hskrasek/arazzo-parser)[ Packagist](https://packagist.org/packages/hskrasek/arazzo-parser)[ Docs](https://github.com/hskrasek/arazzo-parser)[ GitHub Sponsors](https://github.com/HSkrasek)[ RSS](/packages/hskrasek-arazzo-parser/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (11)Versions (15)Used By (0)

Parse Arazzo Specifications into PHP Objects
============================================

[](#parse-arazzo-specifications-into-php-objects)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ad1a1f9c86ee4a79f8944e25dddc627e8d8ff9d7301c02961493127bc97c4173/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68736b726173656b2f6172617a7a6f2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hskrasek/arazzo-parser)[![Tests](https://camo.githubusercontent.com/62c1f5f2e0d3971444a736ee379b11095ba405197676220d6f498ba0147dd3a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68736b726173656b2f6172617a7a6f2d7061727365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/hskrasek/arazzo-parser/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/4d5d33eaaa6578a9fef2dd839650cab7004b7d40e0093c3c53e763da1f1eca8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68736b726173656b2f6172617a7a6f2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hskrasek/arazzo-parser)

This package allows you to parse [Arazzo Specifications](https://spec.openapis.org/arazzo/latest.html "Latest Arazzo Specification") into plain old PHP objects.

```
use HSkrasek\Arazzo\Parser;

$specification = Parser::parse(
    file_get_contents('https://raw.githubusercontent.com/bump-sh-examples/train-travel-api/a97f549346f8cb44ec8d5e9d08cfe57b8b09cd6e/arazzo.yaml')
);

var_dump($specification);

//object(HSkrasek\Arazzo\Specification\Arazzo)#636 (5) {
//  ["arazzo"]=>
//  enum(HSkrasek\Arazzo\Specification\Version::V1_0_1)
//  ["info"]=>
//  object(HSkrasek\Arazzo\Specification\Info)#736 (4) {
//    ["title"]=>
//    string(30) "BNPL Loan Application Workflow"
//    ["version"]=>
//    string(5) "1.0.0"
//    ["summary"]=>
//    NULL
//    ["description"]=>
//    string(354) "This workflow walks through the steps to apply for a BNPL loan at checkout, including checking product eligibility, retrieving terms and conditions, creating a customer record, initiating the loan transaction, customer authentication, and retrieving the finalized payment plan. It concludes by updating the order status once the transaction is complete."
//  ...
//  }
```

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

[](#installation)

You can install the package via composer:

```
composer require hskrasek/arazzo-parser
```

Usage
-----

[](#usage)

Your main and only entrypoint will be the Parser, which supports parsing an [Arazzo Specification](https://spec.openapis.org/arazzo/latest.html "Latest Arazzo Specification") via many different methods and all standard formats.

```
use HSkrasek\Arazzo\Parser;

// Parse an Arazzo specification string
$specification = Parser::parse(
    file_get_contents('https://raw.githubusercontent.com/bump-sh-examples/train-travel-api/a97f549346f8cb44ec8d5e9d08cfe57b8b09cd6e/arazzo.yaml')
);
// or parse an Arazzo specification from a file
$specification = Parser::parse(new SplFileObject(__DIR__ . '/arazzo.yaml'));

// or parse an Arazzo specification from a resource handler

$specification = Parser::parse(fopen(__DIR__ . '/arazzo.yaml'));
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Hunter Skrasek](https://github.com/hskrasek)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance69

Regular maintenance activity

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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

3

Last Release

468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9611296aa629f6c3fe02f8434ea70dc38d034d0c51985b362a66c8a293529cfc?d=identicon)[hskrasek](/maintainers/hskrasek)

---

Top Contributors

[![hskrasek](https://avatars.githubusercontent.com/u/787487?v=4)](https://github.com/hskrasek "hskrasek (28 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

arazzoarazzo-specificationopenapiparseropenapiOAIarazzo

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hskrasek-arazzo-parser/health.svg)

```
[![Health](https://phpackages.com/badges/hskrasek-arazzo-parser/health.svg)](https://phpackages.com/packages/hskrasek-arazzo-parser)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[cebe/php-openapi

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

49715.9M104](/packages/cebe-php-openapi)[paycore/openfintech-data

Openfintech data

22010.0k](/packages/paycore-openfintech-data)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)[devizzent/cebe-php-openapi

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

3810.1M72](/packages/devizzent-cebe-php-openapi)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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