Object-oriented CURL implementation for PHP