simple php http wrapper with php-curl
Support :
- HTTP Method GET, POST
- Download File
- Support Cookie with cookiejar file
- PHP 5+
- php5-curl
Install the latest version with composer require kittinan/php-http
This plugin on the Packagist.
https://packagist.org/packages/kittinan/php-http
Example : HTTP GET
$http = new \KS\HTTP\HTTP();
$url = 'https://github.com/kittinan/php-http';
$html = $http->get($url);
echo $html;
The MIT License (MIT)