PHPackages                             chhw/route-list - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. chhw/route-list

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chhw/route-list
===============

This package can list all routes just as Laravel do.

1.0.2(3y ago)27MITPHPPHP &gt;=7.2

Since Oct 26Pushed 3y agoCompare

[ Source](https://github.com/wangchristine/route-list)[ Packagist](https://packagist.org/packages/chhw/route-list)[ RSS](/packages/chhw-route-list/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Lumen Route List
================

[](#lumen-route-list)

> This package can list all routes just as Laravel do.

[![example-route](example-route.jpg)](example-route.jpg)

Installation
============

[](#installation)

Install by composer

```
    $ composer require chhw/route-list
```

In `bootstrap/app.php`, you should:

1. add `$app->register(CHHW\RouteList\RouteListServiceProvider::class);`

Usage
=====

[](#usage)

> Just like the way to use Laravel !

```
php artisan route:list
```

```
options:
      --json                       Output the route list as JSON
      --method[=METHOD]            Filter the routes by method
      --name[=NAME]                Filter the routes by name
      --path[=PATH]                Only show routes matching the given path pattern
      --except-path[=EXCEPT-PATH]  Do not display the routes matching the given path pattern
  -r, --reverse                    Reverse the ordering of the routes
      --sort[=SORT]                The column (method, uri, name, action, middleware) to sort by [default: "uri"]
      --except-vendor              Do not display routes defined by vendor packages
      --only-vendor                Only display routes defined by vendor packages
  -h, --help                       Display help for the given command. When no command is given display help for the list command
  -q, --quiet                      Do not output any message
  -V, --version                    Display this application version
      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output
  -n, --no-interaction             Do not ask any interactive question
      --env[=ENV]                  The environment the command should run under
  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

```

Route Example
=============

[](#route-example)

```
