A simple REST client implemented in PHP