psx/openapi
Generate OpenAPI specification documents for your PHP REST API. Part of the PSX framework, this component helps describe endpoints, parameters, and schemas so your API can be documented and consumed by standard OpenAPI tooling.
Consider it when:
Look elsewhere when:
dedoc/scramble or zircote/swagger-php have orders of magnitude more adoption and community support.league/openapi-psr7-validator for validation instead.Decision rule: adopt only if programmatic, type-safe document construction is a hard requirement and you accept a thin in-house wrapper; otherwise standardize on a mainstream tool.
To executives: This is not a strategic dependency. It is a small, permissively licensed utility that lets PHP code emit an OpenAPI specification in a type-safe way. The value is modest and internal — cleaner API contracts feeding SDKs, docs, and contract tests — and the risk is low but non-zero because the project has essentially no adoption or community. Recommendation: do not budget for it; evaluate mainstream alternatives first and treat this as a fallback for a specific technical constraint.
To engineering: The appeal is compile-time-ish safety for spec generation and fit with the psx/apioo ecosystem. The cost is that you own the Laravel integration, the upgrade path, and the bug fixes. Benchmark against dedoc/scramble (Laravel-native) and zircote/swagger-php before committing; only proceed if runtime, programmatic document assembly is genuinely required, and then keep it behind an internal interface so it can be swapped out without touching product code.
How can I help you explore Laravel packages today?