Skip to content
← Back to projects

Zttp

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

#Zttp

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

Guzzle Services

starred PHP Package

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

254 11.9M MIT

Psr7

starred PHP Package

PSR-7 message implementation that also provides common utility methods

7929 1183.8M MIT

New version available.