Simple API Doc generator based on Controller Annotations using with Laravel 5.2.* | 5.3.*
Install by steps:
composer require restio/laravel-api-doc-provider
RestioDocProvider\RestioDocProvider::class,
php artisan clear-compiled
php artisan optimize
php artisan vendor:publish
config/restio_doc.php
@route example_index
@description Example description for route
@required_params [token]
@optional_params [page]
- @route - route name from RouteCollection
- @description - short description about this route (ex. Main page, List of Users etc.)
- @required_params - Required params (this params be marked with red star)
- @optional_params - Optional params
- token, page - params in app/Models/Doc.php
php phpunit
php artisan generate:docs
Enjoy!