In this example, we are retrieving all the routes and outputting their names. This is useful when debugging or developing a web application. Example 2:php $routes = $router->getRoutes(); $route = $routes->match(Request::createFromGlobals()); if ($route) { echo $route->getName() . "\n"; } ``` In this example, we are retrieving the list of routes and then matching them against a HTTP request. If a match is found, we output the name of the matched route. The package library for this method would be dependent on the web application framework being used. For example, in Laravel this method would be part of the Illuminate\Routing\Route class. In Symfony, it would be part of the Symfony\Component\Routing\Router class.