Search by

OpenAPI 3.1 document generation for the Waffle framework, built from #[Route] attributes and typed DTOs.

Package info

github.com/waffle-commons/openapi

pkg:composer/waffle-commons/openapi

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 3

dev-main 2026-09-30 08:05 UTC

This package is auto-updated.

Last update: 2026-10-31 16:39:41 UTC


README

Discord PHP Version Require PHP CI codecov Latest Stable Version Latest Unstable Version Total Downloads Packagist License

Waffle OpenApi Component

Release: unreleased ย |ย  CHANGELOG.md Status: In development for 0.1.0-beta7 โ€” roadmap [API-01] (RFC-016). Generation runs at build time (openapi:generate); nothing is added to the request hot path.

OpenAPI 3.1 document generation for the Waffle framework, built from #[Route] attributes and typed DTOs.

๐Ÿ“ฆ Installation

composer require waffle-commons/openapi

๐Ÿงญ Architectural boundary (mago guard)

Waffle\Commons\OpenApi depends only on waffle-commons/contracts (plus waffle-commons/utils for shared primitives) and the PSR interfaces โ€” never on a sibling component's concrete classes. Every interface it implements lands in waffle-commons/contracts first.

๐Ÿงต Worker safety

Services are resident in FrankenPHP worker mode: no mutable state may survive a request. Anything that holds per-request state implements ResettableInterface directly; composer igor must report 0 KO.

๐Ÿงช Testing

composer mago    # formatter, linter, analyzer, guard โ€” clean means zero output
composer tests   # PHPUnit 12.5, line coverage โ‰ฅ 95 %
composer igor    # worker-safety audit

๐Ÿ“š Documentation

Full documentation tree: waffle-commons/documentation

๐Ÿ“„ License

MIT โ€” see LICENSE.md.