dedoc/scramble
API development
Generates OpenAPI 3.1.0 documentation for a Laravel API from your code, without PHPDoc annotations.
The problem it solves
Hand-written API docs go out of date; annotating every field is slow.
Install
composer require dedoc/scramble Example
From the package README: after install two routes exist, /docs/api (viewer) and /docs/api.json (OpenAPI document).
composer require dedoc/scramble
# then open /docs/api (UI)
# and /docs/api.json (OpenAPI document) Requirements and activity
Fetched from Packagist and GitHub on 2026-11-29. Constraints show what the package allows, not what its maintainers tested.
| Latest stable | v0.13.55 (2026-11-16) |
|---|---|
| PHP | ^8.1 |
| Laravel | ^10.0|^11.0|^12.0|^13.0 |
| License | MIT |
| Downloads (Packagist, total) | 22,966,648 |
| GitHub stars | 2,238 |
| Last push | 2026-11-26 |
| Status | Not marked abandoned |
Strengths
- Docs come from the code, so they follow it.
Limits to know
- By default the routes are available only in the local environment. A viewApiDocs gate controls access elsewhere; forgetting it causes 403 in production (see the related question).
Alternatives
- knuckleswtf/scribe
Related questions
Official links
Documentation · Packagist · GitHub
Write-up based on: github.com/dedoc/scramble#readme. Written from the official README and docs; not tested by Laravel Questions. All packages.