News for hackers. Stuff that matters.
Re:Link: A fast and simple PHP Router by erming on Thursday May 29, 2014 @12:46PM (#7817141)
Looks like everyone and their grandma has written their own PHP router.

Here's mine:

https://github.com/erming/route

Code: https://github.com/erming/route/blob/master/route.php

~80 LOC

Re:Link: A fast and simple PHP Router by krapp on Thursday May 29, 2014 @05:21PM (#7818663)
I did. It's not worth posting though.

I think writing a php router is one of those things everyone who works with php should learn to do. It teaches you a lot.