Description
L5-Swagger is a Laravel package that connects OpenAPI and Swagger documentation to a Laravel project. It is a wrapper around swagger-php, which generates the OpenAPI specification from annotations in your code, and swagger-ui, which serves the interactive documentation page. The package adapts both to Laravel so the docs can be served from your app with a few steps. Its wiki covers installation and configuration, a change log, migration guides between versions, how to use Swagger UI with Passport for OAuth-protected APIs, and tips. The maintainers note that the package does not define the Swagger specification itself: writing the annotations follows the swagger-php documentation, which the README links to. It is aimed at Laravel developers who want their API documentation generated from code and published alongside the application. The source is public on GitHub.…
Highlights
- Serves Swagger UI from a Laravel app
- Wraps swagger-php for annotation-based specs
- Swagger UI with Passport support
- Installation, configuration and migration guides
Ratings & Reviews
No ratings yet
Be the first to rate L5-Swagger.
People also visit
L5-Swagger FAQ
What is L5-Swagger?
A Laravel package that generates and serves OpenAPI and Swagger documentation for a Laravel project.
Is it free?
Yes. The source is public on GitHub. The README in the scan does not show the license text.
Does it generate the spec for me?
It packages swagger-php, which builds the OpenAPI spec from annotations in your code. The spec itself follows the swagger-php documentation.
Can I use it with Passport?
Yes. The wiki has a guide to using Swagger UI with Passport.
Where do I find installation steps?
In the project's wiki, which covers installation and configuration, change log and migration guides.
Who maintains it?
The project is hosted under DarkaOnLine on GitHub, which is where issues and contributions are handled.
What are the best L5-Swagger alternatives?
Popular alternatives to L5-Swagger include Laravel Openapi, Grape Swagger and Kin Openapi. See all L5-Swagger alternatives




