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

Adam Wathan a48e984d59 Merge branch 'freekmurze-start-server' 7 år sedan
src 5e271c7b49 Init 7 år sedan
tests cc32571a7c Extract small setup class, minimize sleep 7 år sedan
.gitattributes 5e271c7b49 Init 7 år sedan
.gitignore 5e271c7b49 Init 7 år sedan
CONTRIBUTING.md 5e271c7b49 Init 7 år sedan
LICENSE.md 4e1ae27263 Update LICENSE.md 7 år sedan
README.md efc7d4b7cd Update readme 7 år sedan
composer.json 399c11d5a1 Update license in composer.json 7 år sedan
phpunit.xml.dist cc32571a7c Extract small setup class, minimize sleep 7 år sedan

README.md

Zttp

Zttp is really 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',
// ];