bject-oriented cURL requests in PHP