Simple REST client written in PHP