joomla/router
Joomla Framework Router registers application routes and dispatches incoming request URIs to controller methods. PHP 8.1+ compatible, install via Composer (joomla/router ~3.0). Suitable for building clean, maintainable routing in PHP apps.
joomla/console IntegrationThe Router package can be integrated with an application using the joomla/console package to provide additional helpers in your application.
The debug:router command can be used to list information about your application's router, including the configured routes and the controllers configured to handle those routes.
<?php
// /path/to/console.php
use Joomla\Console\Application;
use Joomla\Router\Router;
use Joomla\Router\Command\DebugRouterCommand;
$application = new Application;
$router = new Router;
$command = new DebugRouterCommand($router);
$application->addCommand($command);
$application->execute();
php /path/to/console.php debug:router
By default, the command does not list information about a route's controller. You can pass the --show-controllers option to show this extra information if desired.
php /path/to/console.php debug:router --show-controllers
How can I help you explore Laravel packages today?