New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

widnyana/lumen-dingo-routes-list

Lumen Routes List Dingo API Endpoint
1,604 1
Install
composer require widnyana/lumen-dingo-routes-list
Latest Version:v0.1
PHP:>=5.5.9
Laravel:5
License:BSD-3-Clause
Last Updated:Oct 24, 2016
Links: GitHub  ·  Packagist
Maintainer: noisegate

Lumen Dingo Route List

Latest Stable Version Monthly Downloads

This code bring Dingo's api:route command to Lumen's artisan.

Howto

Acquire the source code:

composer require widnyana/lumen-dingo-routes-list

and Register the service provider:

// file: bootstrap/app.php
$app->register(Widnyana\LDRoutesList\CommandServiceProvider::class);

call it like this:

$ ./artisan api:list-route 

for avoiding any command conflict with Dingo nor Lumen, the command is located at api:list-route .

lumen-dingo-routes-list in action

Help wanted

There is an "undefined behaviour" that I can't exactly tell you why it will always say GET|HEAD for the Method columns no matter what HTTP Method you define for each route, as far as I try, there is no HTTP Method passed down to Dingo\Api\Routing\Route, and the function call to $route->getMethods() will always return GET|HEAD. If you know how, please send me a pull request :)

Disclaimer

This code is blatantly stolen from this file.

License

see license

Related Packages

mannv/dingo-routes-list

Lumen Routes List Show, Dingo routes list in artisan

48 0
appzcoder/lumen-routes-list

Display the route list of Lumen

747,431 117
marcha/lumen-routes-list

Display the route list of Lumen

6,390 0
adoolaard/lumen-routes-list

Final Lumen update - Display the route list of Lumen

342 0
wicaksonoe/lumen-routes-list

Display the route list of Lumen

57 0

Version History

Version Released PHP Laravel License
v0.1 >=5.5.9 ~5.0 BSD-3-Clause