nelmio/api-doc-bundle
Symfony bundle to generate OpenAPI documentation for your APIs. Provides an interactive docs UI and schema generation driven by PHP 8 attributes. Requires PHP 8.1+ and Symfony 6.4+. Includes migration guides and solid CI support.
@deprecated) in code, which auto-generates into documentation./api/doc).Adopt NelmioApiDocBundle when:
#[ApiProperty], #[ApiResource]).Look elsewhere if:
zircote/swagger-php).webonyx/graphql-php + graphdoc).For Executives:
"NelmioApiDocBundle lets us automate 90% of API documentation by generating OpenAPI specs directly from our Symfony codebase. This reduces developer onboarding time by 30% (no more hunting for undocumented endpoints) and ensures our public APIs stay in sync with the code. For example, adding @deprecated to a route instantly updates the docs—no manual edits required. It’s a low-cost, high-impact way to improve API reliability and developer experience, with zero ongoing maintenance."
For Engineers:
*"This bundle eliminates the drudgery of manual API docs by parsing PHP attributes (e.g., #[ApiProperty]) into Swagger/OpenAPI specs. Key benefits:
/api/doc works out of the box.For API Consumers/Partners:
"Our API documentation is now always up-to-date and interactive. Try it at /api/doc—you’ll see live examples, request/response schemas, and even try endpoints directly in the browser. No more stale PDFs or outdated Postman collections!"
How can I help you explore Laravel packages today?