widnyana/lumen-dingo-routes-list 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

widnyana/lumen-dingo-routes-list

Composer 安装命令:

composer require widnyana/lumen-dingo-routes-list

包简介

Lumen Routes List Dingo API Endpoint

README 文档

README

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

统计信息

  • 总下载量: 1.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固