REST Client in PHP