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
Requires
- php: >=8.0
- illuminate/support: ^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^8.31
- phpunit/phpunit: ^9.5
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 }