omid-zahed / laravel-request-docs
Automatically generate Laravel docs from request rules, controllers and routes
Installs: 1 861
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^7.4|^8.0
- illuminate/contracts: ^8.37
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.23
- vimeo/psalm: ^4.8
This package is auto-updated.
Last update: 2025-04-13 16:35:36 UTC
README
Automatically generate api documentation for Laravel without writing annotations.
Requirements
Lang | Version |
---|---|
PHP | 7.4 or 8.0 |
Laravel | 6.* or 8.* |
Installation
You can install the package via composer:
composer require rakutentech/laravel-request-docs --dev
You can publish the config file with:
php artisan vendor:publish --tag=request-docs-config
Usage
View in the browser on /request-docs/
or generate a static HTML
php artisan lrd:generate
Docs HTML is generated inside docs/
.
Design pattern
In order for this plugin to work, you need to follow the design pattern by injecting the request class inside the controller. For extra documentation you can use markdown inside your controller method as well.
Screenshots
Generated API documentation
Try API
Testing
./vendor/bin/phpunit
Changelog
- Initial Release