See if it's just easier to use file_get_contents / put_contents instead of downloading all sorts of external libraries.