darkaonline/swagger-lume
SwaggerLume brings Swagger/OpenAPI documentation to Laravel and Lumen apps. It wraps swagger-php to scan your annotations and generate interactive API docs, with a bundled Swagger UI and simple configuration.
Look elsewhere when:
For executives: This is a low-cost, MIT-licensed way to make our Lumen APIs easier to discover, integrate with, and support. It turns existing controller annotations into a live Swagger UI and OpenAPI contract, which can reduce partner onboarding friction, shorten internal ramp-up time, and support API governance without buying a platform. The latest major release adds Lumen 11 and swagger-php 4 support, which meaningfully extends its useful life and aligns it with the framework version we are standardizing on. The main caveats are strategic and operational: it is Lumen-specific, it is a small-maintainer project with limited ecosystem adoption, and the major-version bump requires a planned migration. Adopt it as a focused documentation layer, not as a long-term API management bet.
For engineering: SwaggerLume integrates swagger-php with Lumen and exposes generated Swagger/OpenAPI docs through a UI. Release 11.0 adds Lumen 11 and swagger-php 4 support, so it now fits services on the current Lumen line and lets us use swagger-php 4 annotation tooling, including PHP 8 attributes. Treat it as a breaking upgrade: pin versions, migrate annotation imports and namespaces (the release explicitly calls out the OpenApi\Annotations import pattern as a common pitfall), and generate plus validate the spec in CI. Keep an exit path to Laravel/L5-Swagger or another OpenAPI toolchain if Lumen's role changes. If we need OpenAPI 3.1 guarantees, design-first workflows, or vendor-backed API governance, evaluate alternatives.
How can I help you explore Laravel packages today?