{"id":26558084,"url":"https://github.com/hskrasek/arazzo-parser","last_synced_at":"2026-05-11T02:14:19.869Z","repository":{"id":281547437,"uuid":"945607445","full_name":"hskrasek/arazzo-parser","owner":"hskrasek","description":"Parse OpenAPI Arazzo specifications in PHP","archived":false,"fork":false,"pushed_at":"2025-03-16T17:52:02.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T02:57:42.033Z","etag":null,"topics":["arazzo","arazzo-specification","openapi"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hskrasek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"HSkrasek"}},"created_at":"2025-03-09T20:07:47.000Z","updated_at":"2025-03-16T17:52:05.000Z","dependencies_parsed_at":"2025-03-09T21:29:25.779Z","dependency_job_id":null,"html_url":"https://github.com/hskrasek/arazzo-parser","commit_stats":null,"previous_names":["hskrasek/arazzo-parser"],"tags_count":0,"template":false,"template_full_name":"spatie/package-skeleton-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hskrasek%2Farazzo-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hskrasek%2Farazzo-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hskrasek%2Farazzo-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hskrasek%2Farazzo-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hskrasek","download_url":"https://codeload.github.com/hskrasek/arazzo-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244954225,"owners_count":20537735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arazzo","arazzo-specification","openapi"],"created_at":"2025-03-22T12:22:11.187Z","updated_at":"2026-05-11T02:14:14.810Z","avatar_url":"https://github.com/hskrasek.png","language":"PHP","funding_links":["https://github.com/sponsors/HSkrasek"],"categories":[],"sub_categories":[],"readme":"# Parse Arazzo Specifications into PHP Objects\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/hskrasek/arazzo-parser.svg?style=flat-square)](https://packagist.org/packages/hskrasek/arazzo-parser)\n[![Tests](https://img.shields.io/github/actions/workflow/status/hskrasek/arazzo-parser/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/hskrasek/arazzo-parser/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/hskrasek/arazzo-parser.svg?style=flat-square)](https://packagist.org/packages/hskrasek/arazzo-parser)\n\nThis package allows you to parse [Arazzo Specifications][1] into plain old PHP objects.\n\n```php\nuse HSkrasek\\Arazzo\\Parser;\n\n$specification = Parser::parse(\n    file_get_contents('https://raw.githubusercontent.com/bump-sh-examples/train-travel-api/a97f549346f8cb44ec8d5e9d08cfe57b8b09cd6e/arazzo.yaml')\n);\n\nvar_dump($specification);\n\n//object(HSkrasek\\Arazzo\\Specification\\Arazzo)#636 (5) {\n//  [\"arazzo\"]=\u003e\n//  enum(HSkrasek\\Arazzo\\Specification\\Version::V1_0_1)\n//  [\"info\"]=\u003e\n//  object(HSkrasek\\Arazzo\\Specification\\Info)#736 (4) {\n//    [\"title\"]=\u003e\n//    string(30) \"BNPL Loan Application Workflow\"\n//    [\"version\"]=\u003e\n//    string(5) \"1.0.0\"\n//    [\"summary\"]=\u003e\n//    NULL\n//    [\"description\"]=\u003e\n//    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.\"\n//  ...\n//  }\n```\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require hskrasek/arazzo-parser\n```\n\n## Usage\n\nYour main and only entrypoint will be the Parser, which supports parsing an [Arazzo Specification][1] via many different methods and all standard formats.\n```php\nuse HSkrasek\\Arazzo\\Parser;\n\n// Parse an Arazzo specification string\n$specification = Parser::parse(\n    file_get_contents('https://raw.githubusercontent.com/bump-sh-examples/train-travel-api/a97f549346f8cb44ec8d5e9d08cfe57b8b09cd6e/arazzo.yaml')\n);\n// or parse an Arazzo specification from a file\n$specification = Parser::parse(new SplFileObject(__DIR__ . '/arazzo.yaml'));\n\n// or parse an Arazzo specification from a resource handler\n\n$specification = Parser::parse(fopen(__DIR__ . '/arazzo.yaml'));\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Hunter Skrasek](https://github.com/hskrasek)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[1]: \u003chttps://spec.openapis.org/arazzo/latest.html\u003e \"Latest Arazzo Specification\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhskrasek%2Farazzo-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhskrasek%2Farazzo-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhskrasek%2Farazzo-parser/lists"}