Customize Your Own PHP Curl Class
A simple php curl class include some default setting that always used.
Load
1 | composer require lizus/php-curl |
Constant
1 | define('PHPCURL_UA', 'your ua');//custom useragent |
Sample
1 | use \Lizus\PHPCurl\PHPCurl; |
A simple php curl class include some default setting that always used.
1 | composer require lizus/php-curl |
1 | define('PHPCURL_UA', 'your ua');//custom useragent |
1 | use \Lizus\PHPCurl\PHPCurl; |