oro/api-doc-bundle
Fork of NelmioApiDocBundle 2.x updated for Symfony 5 compatibility. Generates API documentation with a Swagger-UI-inspired interface, including routes, parameters, and responses, with PHPUnit tests and MIT license.
zircote/swagger-php to validate requests/responses against specs.Serializer, HttpKernel) where this bundle’s logic can be repurposed.Adopt if:
Serializer, HttpKernel) and can tolerate minor Symfony dependencies.darkajp/l5-swagger fork).@ApiDoc, @Get, @Post annotations).Look elsewhere if:
darkajp/l5-swagger or zircote/swagger-php).graphql-php/graphql + custom docs or kriswallsmith/assetic for Swagger integration)."This package lets us automate API documentation—saving dev time and reducing errors from outdated specs. By adapting NelmioApiDocBundle (a Symfony fork) for Laravel, we get interactive, self-service API docs that partners and internal teams can explore without manual updates. It’s like having a living manual for our APIs, cutting onboarding time and improving adoption. Low risk (MIT license, active community), and it future-proofs our API strategy for governance and compliance. Tradeoff: Requires minor Symfony integration (e.g., Serializer), but the payoff is 10x faster docs than manual YAML."
*"This is a high-leverage tool for API docs in Laravel, but it’s not plug-and-play—we’d need to abstract Symfony dependencies. Here’s the pitch:
@ApiDoc), so we don’t maintain YAML manually.Serializer, HttpKernel, or DI workarounds (e.g., spatie/laravel-annotation-reader).darkajp/l5-swagger (Laravel-native). ROI: 3–5 dev-weeks saved annually on docs maintenance."**"This supports our API-first roadmap by:
l5-swagger) if this is too heavy?
Success metric: 80% of API endpoints documented with <10% manual effort."*How can I help you explore Laravel packages today?