Scramble 0.11.0 is here! Laravel Data support, schema enforcement and more
Learn more
Scramble – Laravel OpenAPI (Swagger) Documentation Generator
Scramble is OpenAPI (Swagger) documentation generator for Laravel. It generates API documentation for your project automatically without requiring you to manually write PHPDoc annotations.
Demo Project
The source of the demo API project with generated documentation.
Demo Documentation
The demo documentation for the API project with generated documentation.
The documentation is generated in OpenAPI 3.1.0 format. To show the documentation in UI, Stoplight Elements is used.
The main motivation for the project is to generate as much API documentation automatically as possible.
This allows you to focus on code and avoid annotating every possible param/field as it may result in outdated documentation. By generating docs automatically from the code your API will always have up-to-date documentation you can trust.