A php rest engine I tried making while hacking around