riconijeboer/laravel-to-swagger
laravel-to-swagger generates Swagger/OpenAPI documentation for Laravel applications, turning routes and controllers into browsable API docs so your specification stays aligned with the code you ship.
Consider it when:
Look elsewhere when:
To executives: This is a free, MIT-licensed Laravel package that auto-generates OpenAPI 3 specs from our API code — the kind of artifact that unblocks partner integrations, SDKs, and a developer portal. However, it is archived and unmaintained since early 2022, with a very small user base. Recommendation: do not adopt it as a platform dependency. Treat it as a signal that the category is commoditized and cheap to solve, and budget instead for an actively maintained generator (e.g., Scramble or L5-Swagger) or a hosted docs platform if external developers are on the roadmap. Cost of adoption looks like zero; cost of ownership — security patching, Laravel upgrades, forking — is non-trivial and lands on engineering.
To engineering: The package does one thing well: convert Laravel API definitions into Swagger/OpenAPI 3 config with low annotation overhead. But it’s archived with a February 2022 last release, so expect friction on modern Laravel/PHP, no security backports, and no upstream fixes. If we adopt, we adopt the fork. Better path for anything production-bound: benchmark it against Scramble (active, attribute-driven) and L5-Swagger (mature, annotation-driven), and pick based on whether we want code-first inference or explicit annotations. Use this repo only as a reference implementation or throwaway spike — not as a dependency in a service we intend to keep.
How can I help you explore Laravel packages today?