CURL wrapper for PHP