Download the PHP package gungcahyadipp/auto-docs without Composer

On this page you can find all versions of the php package gungcahyadipp/auto-docs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package auto-docs

Auto-Docs

All-in-one API documentation package for Laravel. Bundles Scramble and Scramble Pro into a single package with automatic configuration, Bearer token auth, dark theme UI, and external docs support.

Features

Versions Bundled

Installation

The package auto-discovers via Laravel's package discovery. No manual provider registration needed.

Configuration

Publish the config file:

Publish the API description markdown:

Publish everything at once:

Usage

Visit /docs to see the generated API documentation.

The JSON OpenAPI spec is available at /docs/api.json.

Config Overview

All configuration lives in config/autodocs.php:

Security Scheme

Bearer JWT is enabled by default. All endpoints will show the lock icon in the docs UI.

To exclude an endpoint from authentication, use @unauthenticated in the PHPDoc:

To switch to API Key authentication:

To disable security entirely:

External Docs (Separated Descriptions)

Instead of writing long descriptions in your controller PHPDoc, you can create separate markdown files. No changes needed in your controller — the extension automatically matches doc files to endpoints based on controller name and method.

Quick Start

  1. Generate the skeleton:

  2. Edit the generated .md files in autodocs/

  3. Visit /docs — descriptions are loaded automatically

How It Works (No Controller Changes Needed)

Given this controller:

And this file:

The docs UI will automatically show the content from store.md as the endpoint description. You don't need to add any annotation, attribute, or PHPDoc to the controller.

Combining with PHPDoc

If you still want to use PHPDoc for some things (like @unauthenticated or @tags), that works fine:

The description_strategy config controls how external docs interact with any existing PHPDoc description.

File Structure

Markdown Format

Path Resolution

For a controller like App\Http\Controllers\Api\V1\UserController@store, the extension searches these paths in order:

  1. autodocs/Api/V1/UserController/store.md (most specific)
  2. autodocs/V1/UserController/store.md
  3. autodocs/UserController/store.md (only if no V1/V2 conflict)
  4. autodocs/Api/V1/User/store.md (without "Controller" suffix)
  5. autodocs/User/store.md

Multi-Version Safety

When both V1/UserController/ and V2/UserController/ exist in your docs folder, the short name fallback (UserController/store.md) is automatically disabled to prevent cross-version contamination.

Description Strategy

Control how external docs interact with PHPDoc in your controllers:

Strategy Behavior
'file' Markdown file overrides PHPDoc description (default)
'merge' Markdown file is appended after PHPDoc description
'fallback' Markdown file is used only when PHPDoc is empty

API Description (Homepage)

The API homepage description is loaded from a markdown file:

  1. Default: bundled template from the package
  2. After publish: autodocs/description.md

Edit this file to customize the description shown on the docs homepage.

Optional Package Support

Auto-Docs conditionally enables extensions for these packages when installed:

Package What it enables
spatie/laravel-data Data object schema generation
spatie/laravel-query-builder Filter/sort/include parameter docs
timacdonald/json-api JSON:API resource schema
lorisleiva/laravel-actions Actions as controllers
spatie/laravel-json-api-paginate JSON:API pagination params

No configuration needed — just install the package and docs are generated automatically.

Custom Extensions

Register your own Scramble extensions:

Or programmatically in a service provider:

Auto-Generate Docs Skeleton

Automatically scaffold markdown doc files for all your API endpoints:

This scans all registered API routes and creates .md files with a ready-to-fill template:

Options

Option Description
--force Overwrite existing doc files
--path= Custom output path (default: from config docs_path)
--api-path= Filter routes by API path prefix

Example

Each generated file includes:

Testing

License

MIT


All versions of auto-docs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
myclabs/deep-copy Version ^1.12
nikic/php-parser Version ^5.0
phpstan/phpdoc-parser Version ^1.0|^2.0
spatie/laravel-package-tools Version ^1.9.2|^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gungcahyadipp/auto-docs contains the following files

Loading the files please wait ...