The RdnRouter ZF2 module provides a very simple debug utility that displays information about all your HTTP routes.
-
Use
composerto require theradnan/rdn-routerpackage:$ composer require radnan/rdn-router:1.* -
Activate the module by including it in your
application.config.phpfile:<?php return array( 'modules' => array( 'RdnRouter', // ... ), );
Define all your routes using the router.routes configuration option. Then, simply run the following command from your project root:
$ vendor/bin/console router:debugYou 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