Skip to content

huangdijia/http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-client

Latest Version on Packagist Total Downloads GitHub license

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)]);

Other uses

Laravel HTTP Client

Laravel HTTP 客户端

About

A HTTP client base curl, like laravel HTTP client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages