Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Link: A fast and simple PHP Router.
Here's mine:
https://github.com/erming/route
Code: https://github.com/erming/route/blob/master/route.php
~80 LOC
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.
Here's mine:
https://github.com/erming/route
Code: https://github.com/erming/route/blob/master/route.php
~80 LOC