tmallen Posted April 8, 2010 Share Posted April 8, 2010 Does anybody know of a simple, reliable PHP-based URL routing library? I have found two candidates, neither of which meets my requirements: routemap: http://code.google.com/p/routemap/ Horde Routes: http://dev.horde.org/routes/ routemap is too direct: It dispatches directly to static class methods, thus enforcing a structure. Horde Routes do not behave as documented on the website. Note that the returned match array below has no controller set. <?php $map = new Horde_Routes_Mapper(); $map->createRegs(array('test', 'cat', 'dog')); $map->connect(':controller/:action/:id'); var_dump($map->match('/test')); // array with action => 'index' and id => null Link to comment https://forums.phpfreaks.com/topic/198023-recommended-routing-libraries/ Share on other sites More sharing options...
roopurt18 Posted April 8, 2010 Share Posted April 8, 2010 I just write my own. Link to comment https://forums.phpfreaks.com/topic/198023-recommended-routing-libraries/#findComment-1039086 Share on other sites More sharing options...
tmallen Posted April 8, 2010 Author Share Posted April 8, 2010 That's not really a usable recommendation... Link to comment https://forums.phpfreaks.com/topic/198023-recommended-routing-libraries/#findComment-1039091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.