Scramble

dedoc/scramble image

Scramble stats

Downloads
112.7K
Stars
592
Open Issues
23
Forks
35

View on GitHub →

Automatic generation of API documentation for Laravel applications.

Scramble – Laravel API Documentation Generator

Scramble is a Laravel package designed to automatically generate API documentation in OpenAPI 3.1.0 format from your Laravel project. It eliminates the need for manual PHPDoc annotations, ensuring that your documentation remains synchronized with your code base.

Key Features

  • Automatic Documentation: Automatically generates API documentation directly from your Laravel project code.
  • OpenAPI 3.1.0 Support: Produces documentation compliant with the latest OpenAPI specifications.
  • No Manual Annotations Needed: Frees you from the burden of writing and maintaining PHPDoc annotations.
  • Environment-Specific Routes: By default, documentation routes are only enabled in the local environment.

Installation

Install Scramble via composer:

composer require dedoc/scramble

Usage

Upon installation, Scramble automatically adds two routes to your Laravel application:

  • /docs/api - A UI viewer for your generated documentation.
  • /docs/api.json - Provides the OpenAPI document in JSON format.

These routes are, by default, accessible only in the local environment. You can modify access settings using the viewApiDocs gate.

Documentation

For more detailed information and configuration options, visit the official Scramble documentation.

Note: As Scramble is in its early stages, some features may change, and unexpected issues may arise. Contributions and bug reports are welcome to enhance the package further.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Dedoc Scramble Related Articles

Automated API documentation of Laravel API resources image

Automated API documentation of Laravel API resources

Read article
Automated API documentation generation for Laravel with static code analysis using Scramble image

Automated API documentation generation for Laravel with static code analysis using Scramble

Read article
Typesense Search logo

Typesense Search

Typesense is an open source, blazing-fast search engine, optimized for helping you build delightful search experiences for your sites and apps. Natively integrated with Laravel Scout.

Typesense Search
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten