A developer-experience focused HTTP client, optimized for most common use cases.
Daniel Supernault e78af39d75 bump guzzle dep | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
src | %!s(int64=6) %!d(string=hai) anos | |
tests | %!s(int64=6) %!d(string=hai) anos | |
.gitattributes | %!s(int64=7) %!d(string=hai) anos | |
.gitignore | %!s(int64=7) %!d(string=hai) anos | |
.travis.yml | %!s(int64=7) %!d(string=hai) anos | |
CONTRIBUTING.md | %!s(int64=7) %!d(string=hai) anos | |
LICENSE.md | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=7) %!d(string=hai) anos | |
composer.json | %!s(int64=2) %!d(string=hai) anos | |
phpunit.xml.dist | %!s(int64=7) %!d(string=hai) anos |
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->json();
// => [
// 'whatever' => 'was returned',
// ];
composer require kitetail/zttp