mezatsong/laravel-swagger-docs
A Laravel package for generating Swagger/OpenAPI documentation from your API routes and annotations, helping you publish interactive API reference docs directly within your Laravel application.
Adopt when:
Look elsewhere when:
oneOf/allOf composition, or rich schema semantics beyond what validation rules can express.Migration caution: verify generated specs against a snapshot/diff before and after upgrading from 2.2.1 — the type-generation fixes will legitimately change output, which can break downstream consumers pinning to previous spec output.
For executives: We can generate accurate, standards-based API documentation directly from code we already write, at essentially zero marginal cost. The new 2.2.2 patch fixes correctness bugs in how integer, boolean, and nested-array fields are documented — these were the classes of errors that produce broken client SDKs and integration support tickets. Adopting it removes a recurring manual-documentation cost and unblocks SDK/contract-testing work on the roadmap. Risk is modest: it's a community-maintained dependency, so we should pin versions and diff generated specs in CI.
For engineering: Add the package, annotate endpoints, and let your existing validation rules drive the spec. 2.2.2 resolves three real bugs — integer column typing, boolean schema generation, and nested array validation — contributed by the community, so the project is healthy and actively used. Recommended safeguards: pin the version, snapshot the generated OpenAPI file in CI and fail on unexpected diffs, and treat spec changes as reviewable artifacts so downstream consumers aren't surprised by a patch-level type change.
How can I help you explore Laravel packages today?