$router = new Router(); $router->get('/users', 'UserController@index');
$router = new Router(); $router->get('/users/{id}', 'UserController@show');
$router = new Router(); $router->group('/users', function($router) { $router->get('/', 'UserController@index'); $router->get('/{id}', 'UserController@show'); });The PHP Router Action library can be found in various package libraries such as Laravel, Symfony, and Slim Framework.