kevupton/laravel-swagger
A Laravel package for adding Swagger/OpenAPI documentation to your application, helping you generate and serve interactive API docs alongside your routes. Useful for teams that want browsable, spec-based reference for their Laravel endpoints without leaving the framework.
zircote/swagger-php + darkaonline/l5-swagger (annotation-first) or dedoc/scramble (zero-annotation, derived from code).Adopt only under narrow conditions:
composer.json if it stalls. Treat it as a script, not a platform.swagger-php directly.Look elsewhere when:
zircote/swagger-php (annotations/attributes) with darkaonline/l5-swagger for UI, or dedoc/scramble if you want zero-annotation generation from routes and form requests.knuckleswtf/scribe is the better fit.To executives: This is a small, low-risk developer tool that turns existing Laravel code into API documentation automatically, cutting the manual effort behind partner-facing docs, API portals, and onboarding. It's cheap to trial and can't affect production because it only runs at build/documentation time. The caveat is maturity: it's a niche package with minimal community adoption, so I'd frame approval as a time-boxed pilot (2–3 weeks, one API surface) rather than a platform commitment, with a pre-agreed exit to swagger-php or Scramble if it doesn't hold up.
To engineering: It scaffolds Swagger annotations from Laravel routes, which removes the most tedious part of documenting an existing API. Expect to verify version compatibility with our Laravel/PHP baseline, and expect to own the code — upstream is effectively static. Recommendation: use it as a throwaway scaffolding step on legacy services, and standardize on zircote/swagger-php + l5-swagger (annotation-driven) or dedoc/scramble (auto-derived, no annotations to maintain) as the durable path for new work. Either way, the decision gets us to a checked-in, CI-validated OpenAPI contract — that's the outcome worth funding, and the specific package is replaceable.
How can I help you explore Laravel packages today?