A developer-experience focused HTTP client, optimized for most common use cases.
Daniel Supernault e78af39d75 bump guzzle dep | 2 vuotta sitten | |
---|---|---|
src | 6 vuotta sitten | |
tests | 6 vuotta sitten | |
.gitattributes | 7 vuotta sitten | |
.gitignore | 7 vuotta sitten | |
.travis.yml | 7 vuotta sitten | |
CONTRIBUTING.md | 7 vuotta sitten | |
LICENSE.md | 7 vuotta sitten | |
README.md | 7 vuotta sitten | |
composer.json | 2 vuotta sitten | |
phpunit.xml.dist | 7 vuotta sitten |
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