Simple personal RESTful api written in php