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