Make the route functions usable in PHP code