rajudev/laravel-doc-generator

A Laravel package for generating documentation from controller comments.

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/rajudev/laravel-doc-generator

v2.0.0 2025-01-22 11:34 UTC

This package is not auto-updated.

Last update: 2025-12-24 16:07:41 UTC


README

This package generates documentation for Laravel controllers based on specially formatted comments.

Installation

composer require raju/laravel-doc-generator

Usage

Run the following Artisan command to generate documentation:

php artisan doc:generate

The generated documentation will be saved as storage/docs.json.

Markup Format

Add comments like this in your controllers:

/* raju
Description: Fetches user data by ID.
Where Used: User profile API.
*/
public function getUserData($id)
{
    // Your logic here
}