dedoc/scramble

Automatic generation of API documentation for Laravel applications.
16,138,206 2,214
Install
composer require dedoc/scramble
Latest Version:v0.13.45
PHP:^8.1
License:MIT
Last Updated:Sep 24, 2026
Links: GitHub  ·  Packagist
Maintainer: romalytvynenko

Scramble

Scramble generates API documentation for Laravel project. Without requiring you to manually write PHPDoc annotations. Docs are generated in OpenAPI 3.1.0 format.

Documentation

You can find full documentation at scramble.dedoc.co.

Introduction

The main motto of the project is generating your API documentation without requiring you to annotate your code.

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 docs which you can trust.

Installation

You can install the package via composer:

composer require dedoc/scramble

Usage

After install you will have 2 routes added to your application:

  • /docs/api - UI viewer for your documentation
  • /docs/api.json - Open API document in JSON format describing your API.

By default, these routes are available only in local environment. You can change this behavior by defining viewApiDocs gate.


Related Packages

vyuldashev/laravel-openapi

Generate OpenAPI Specification for Laravel Applications

1,277,615 461
darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

2,493,525 331
darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

41,493,853 2,937
noitran/opendox

OpenApi(Swagger) 3.0 package for Lumen 5.5+ and Laravel 5.5+ with REDOC UI and S...

14,796 22
yaangvu/swagger-lume

OpenApi or Swagger integration to Lumen

7 0