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

v1.0.2 2020-03-09 05:58 UTC

This package is auto-updated.

Last update: 2022-01-18 03:32:09 UTC


README

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