Recommend simple PHP Routing Engine

Ticksy picture Ticksy · Feb 10, 2012 · Viewed 20.7k times · Source

Looking for simple php class routing, like this: http://fatfree.sourceforge.net/page/routing-engine

Is there a ready-made solutions? Or is it better to use the whole framework (it is lightweight, might even cut out the router)?

Answer

Selvin Ortiz picture Selvin Ortiz · Nov 14, 2012

You probably already found a solution but one of the routing classes I've been using lately are these two and they've proven to be effective.

PHPRouter.php https://github.com/dannyvankooten/PHP-Router
AltoRouter.php https://github.com/dannyvankooten/AltoRouter