Skip to content

A developer-experience focused HTTP client, optimized for most common use cases.

License

Notifications You must be signed in to change notification settings

WangNingkai/http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Http

Http is a simple Guzzle wrapper designed to provide a really pleasant development experience for most common use cases.

If you need more functionality, just use Guzzle :)

$response = Http::withHeaders(['Fancy' => 'Pants'])->post($url, [
    'foo' => 'bar',
    'baz' => 'qux',
]);

$response->status();
// int

$response->isOk();
// true / false

$response->json();
// => [
//  'whatever' => 'was returned',
// ];

Installation

composer require wangningkai/http

About

A developer-experience focused HTTP client, optimized for most common use cases.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages