dedoc/scramble

Automatic generation of API documentation for Laravel applications.
14,509,584 2,195
Install
composer require dedoc/scramble
Latest Version:v0.13.42
PHP:^8.1
License:MIT
Last Updated:Aug 31, 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

noitran/opendox

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

14,704 22
miladnouri/opendox

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

710 0
darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

40,282,654 2,934
darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

2,469,909 330
vyuldashev/laravel-openapi

Generate OpenAPI Specification for Laravel Applications

1,269,153 460