radnan / rdn-router
Zend Framework 2 simple router debug utility
v1.0.2
2014-10-13 05:42 UTC
Requires
This package is not auto-updated.
Last update: 2024-12-21 17:22:16 UTC
README
The RdnRouter ZF2 module provides a very simple debug utility that displays information about all your HTTP routes.
Installation
-
Use
composer
to require theradnan/rdn-router
package:$ composer require radnan/rdn-router:1.*
-
Activate the module by including it in your
application.config.php
file:<?php return array( 'modules' => array( 'RdnRouter', // ... ), );
Usage
Define all your routes using the router.routes
configuration option. Then, simply run the following command from your project root:
$ vendor/bin/console router:debug
You can also view a bit more detailed information about a single route by using the full route name as an argument:
$ vendor/bin/console router:debug foo/bar