reactmay/zttp

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

Maintainers

Details

github.com/reactmay/zttp

Source

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 122

pkg:composer/reactmay/zttp

v0.6.0 2023-05-24 13:04 UTC

This package is auto-updated.

Last update: 2025-09-24 18:24:46 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 reactmay/zttp