Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: