This is the example code from my phplx anniversary talk about creating a restful api on l4