sayeed / lumen-route-list
List all registered routes
dev-main
2020-11-17 12:20 UTC
Requires
- php: ^7.3
- ext-json: *
- illuminate/console: ~7.0||^8.0
- illuminate/support: ~7.0||^8.0
Requires (Dev)
- laravel/lumen-framework: ^8.0
This package is auto-updated.
Last update: 2024-10-17 22:06:40 UTC
README
This package will help to display all the registered route list like laravel.
This package inspired from thedevsaddam/lumen-route-list
Installation
Via Composer
$ composer require sayeed/lumen-route-list
Open bootstrap/app.php and add the line below
$app->register(Sayeed\LumenRouteList\LumenRouteListProvider::class);
Uses
- Run
php artisan route:list
to display the route list - Inorder to filter routes use
php artisan route:list --method=searchKeyword --uri=searchKeyword
- To display in reverse order use
--reverse
or-r
Filtering example given below:
php artisan route:list --method=post #The above example will filter all the routes with post method# or php artisan route:list --name=users #The above example will filter all the routes which name contains *user* keyword# or php artisan route:list --name=users --method=get --uri=api/v1 #This above example will filter all the routes where name matches users, method matches get and uri matches api/v1 or to display in reverse order use php artisan route:list --name=users -r
License
The lumen-route-list is a open-source software licensed under the MIT License.
Credits
For any questions, you can reach out to the author of this package, Md. Hasan Sayeed.
Thank you for using it :)