kitetail/zttp

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

Maintainers

Details

github.com/kitetail/zttp

Source

Issues

Installs: 281 182

Dependents: 74

Suggesters: 0

Stars: 1 206

Watchers: 32

Forks: 79

Open Issues: 8

v0.6.0 2019-06-10 12:18 UTC

README

Zttp 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 :)

Real documentation is in the works, but for now read the tests.

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

$response->status();
// int

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

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

Installation

composer require kitetail/zttp