Looking to hire Laravel developers? Try LaraJobs

laravel-doc-generator maintained by rajudev

Description
A Laravel package for generating documentation from controller comments.
Author
Last update
2025/01/22 12:34 (dev-main)
License
Links
Downloads
21

Comments
comments powered by Disqus

Laravel Doc Generator

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
}