radebatz/openapi-verifier
A Laravel package for verifying your API against an OpenAPI specification, helping keep routes, requests, and responses in sync with your docs and catching contract mismatches early in development or CI.
/v2 or can we extend /v1?"Consider it when:
league/openapi-psr7-validator for request-side validation).additionalProperties: true everywhere and make verification meaningless.Look elsewhere when:
To executives: This is cheap insurance for API reliability. If we publish an OpenAPI spec — to partners, to mobile, to internal consumers — we need a way to know it's still true. This package checks real API responses against that spec automatically, so integration breakage surfaces in CI instead of in a customer ticket. Cost is a dev dependency plus CI minutes; it adds nothing to the production request path in the test-assertion mode. The trade-off to acknowledge: it's a small, single-maintainer MIT package with minimal community validation, so we pin the version, keep a fork option open, and prove it against our own spec in a short spike before committing.
To engineering: Drop-in verification layer. In Laravel, it slots into the existing test suite — we assert responses against the spec we already write, no new DSL and no new service to operate. Same package also covers PSR-15 middleware and Guzzle/PSR-18 clients, so if we later want staging-time or consumer-side checks, we don't switch tools. MIT, small surface area. Honest caveats: 9 stars, 0 dependents, and we should confirm OpenAPI 3.1 coverage and current PHP/Laravel support ourselves rather than assume it. Recommended next step is a one-day spike: point it at our most-used endpoints, count the failures, and decide whether the spec or the code is wrong. Either answer is useful — that's the point.
How can I help you explore Laravel packages today?