maybe use PhRoute, which utilizes the amazing FastRoute.