mimo mimo - 4 months ago 38
PHP Question

generate documentation file for laravel routes

I know it's possible to print all routes with

php artisan route:list

But is there a way to generate some kind of documentation for it?

For example I am developing an api with well documented code. When another person wants to use this api he can look up in this file where are all routes with the required parameters, the output an some description are described.


Yes, it's possible with phpDocumentor. Sample command from this answer:

phpdoc -d path/to/my/project -f path/to/an/additional/file -t path/to/my/output/folder

You can also try ApiGen