hypecodeteam/swagger-ui-bundle
Swagger UI Bundle integrates Swagger UI into Laravel, making it easy to publish and browse interactive OpenAPI/Swagger documentation. It bundles the needed assets and routes so you can expose API docs with minimal setup and configuration.
config/bundles.php), not a Laravel package. Laravel's package auto-discovery will not touch it, and there is no supported way to boot a Symfony bundle inside a Laravel kernel. If the request was filed as "a Laravel dependency," the correct PM outcome is to close the ticket on the mismatch alone — before any feature comparison, any spike, any legal review. Recording that as a decision saves the org a wasted cycle.The framing to give whoever filed this: 0 stars, 0 dependents, and no maintenance history mean this is not a dependency decision — it is a code-reading exercise. If the route behavior is useful, harvest the pattern. Do not adopt the package.
Consider it — narrowly — only when all of the following hold:
/docs route over an existing, already-generated OpenAPI file.Look elsewhere — or simply build it — when:
darkaonline/l5-swagger for spec generation plus UI, knuckleswtf/scribe for docs generated from routes/annotations), or write the one route yourself. Do not bend a Symfony bundle into a Laravel app — that adapter work is yours to own forever.The honest addressable use case: "Symfony app, existing spec, internal audience, comfortable with GPL, willing to own the fork." That is a small intersection — small enough that the expected PM answer is usually to close the request and reuse the pattern.
To executives (30 seconds): This is a small convenience wrapper that puts an API documentation page at a /docs URL. It is not a strategic component and it is not a dependency I recommend taking on — it's a pattern we can replicate in about a day. The decision actually in front of us is bigger: are we committing to a public API reference as part of the product this quarter? If yes, we should scope it properly — spec generation, authentication, hosting, ownership — rather than adopt a 0-star wrapper. If no, we close this and revisit when external API consumers exist. Either way, the cost of not adopting it is negligible and the risk of adopting it is not.
To engineering (the practical ask): It's a Symfony bundle, so it's a non-starter for our Laravel services — please confirm the platform assumption before anyone spends more time on it. If the asset-serving behavior is genuinely useful, fork the approach, not the code: one route, one controller, serve the Swagger UI assets locally, point at our existing spec. Then flag two things before any commitment — the GPL-3.0 license to legal, and the fact that a route named /docs risks colliding with or accidentally exposing internal endpoints if it isn't gated to dev/staging and put behind auth. Keep the route and the UI asset directory behind config so the choice is reversible. Recommendation: do not adopt as a dependency; harvest the pattern and own it.
How can I help you explore Laravel packages today?