<?php use Bike\Router; use Bike\RouterException; try { $router = new Router(); $router->add('all-methods', array( 'method' => '*', 'route' => '/controller' ) ); $result = $router->match('PUT', '/news'); } catch (RouterException $e) { $result = $e->getMessage(); } ?>
info at phpclasses dot org