All Projects → kitetail → Zttp

kitetail / Zttp

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

Programming Languages

PHP
23972 projects - #3 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].