refactor and renamed to php-curl