huangdijia / http-client
HTTP client base curl, like laravel HTTP client
0.1.1
2020-11-04 01:07 UTC
Requires
- php: >=7.0.0
- ext-curl: *
README
HTTP client base curl, like laravel HTTP client.
Installation
Quick start
GET
use Huangdijia\Http\Client; $response = Client::get($url);
POST
use Huangdijia\Http\Client; $response = Client::post($url, $data);
UPLOAD
use Huangdijia\Http\Client; $response = Client::post($url, ['file' => curl_file_create($fileRealpath)]);