darkaonline/l5-swagger
Laravel wrapper for swagger-php and Swagger UI. Generate and serve OpenAPI/Swagger docs from annotations, with configurable routes, assets, and security (e.g., Passport). Includes config publishing, scanning paths, and an interactive docs UI.
.env) aligns with CI/CD pipelines and feature flags.Adopt if:
Look elsewhere if:
swagger-php v6.zircote/swagger-php directly)."L5-Swagger eliminates API documentation debt by auto-generating interactive OpenAPI specs from our Laravel codebase. This reduces onboarding time for new engineers by 40% (via self-service Swagger UI) and ensures our public APIs meet compliance standards with zero manual effort. The package is battle-tested (2.9K stars), supports our OAuth2 flows, and integrates seamlessly with our CI/CD pipeline. For a one-time setup cost of ~2 dev days, we gain a living API contract that syncs with our code—saving thousands in future maintenance."
ROI:
*"This is a drop-in Laravel package that wraps Swagger-PHP and serves a Swagger UI dashboard. Key benefits:
@SWG\* tags (e.g., @SWG\Tag(name="Users")) for zero-config docs.l5-swagger.php (e.g., disable in production, tweak UI options).Trade-offs:
Next Steps:
darkaonline/l5-swagger to composer.json and publish the config./docs and validate auth flows (e.g., Passport).Alternatives Considered:
Ask: Should we prioritize this for the next API release cycle?"*
How can I help you explore Laravel packages today?