ycookies/apidoc

Automatic generation of API documentation for Laravel applications.

Maintainers

Package info

github.com/ycookies/apidoc

pkg:composer/ycookies/apidoc

Transparency log

Fund package maintenance!

romalytvynenko

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

1.0.1 2026-08-15 11:03 UTC

This package is auto-updated.

Last update: 2026-08-15 11:04:27 UTC


README

Scramble – Laravel API documentation generator

Scramble (ycookies fork)

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

Fork 增强

本 fork 在上游基础上增强了文档 UI,详见 docs/scalar-renderer.md:

  • Scalar 渲染器:配置 renderer => 'scalar' 切换;侧边栏支持 分组 -> 模块 -> 接口 三级导航(x-tagGroups)
  • 前端资源本地化:Scalar JS 内置包内并自动发布到 public/vendor/scalar/,不依赖 CDN
  • 全部展开 / 全部收起按钮、加载提示、中文界面(localization.locale = 'zh-CN')

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.

Donate