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

Adam Wathan e788ab8fc5 Merge pull request #43 from vmitchell85/patch-1 7 anos atrás
src 256fb30589 Merge pull request #32 from faustbrian/patch-2 7 anos atrás
tests baabb419f5 Adds robust multi-part testing 7 anos atrás
.gitattributes 5e271c7b49 Init 7 anos atrás
.gitignore 5e271c7b49 Init 7 anos atrás
CONTRIBUTING.md 06dac83f12 Update CONTRIBUTING.md 7 anos atrás
LICENSE.md 4e1ae27263 Update LICENSE.md 7 anos atrás
README.md e2eac08676 Add Quick Installation Instructions 7 anos atrás
composer.json 4169a4eccf Refactor to collections 7 anos atrás
phpunit.xml.dist cc32571a7c Extract small setup class, minimize sleep 7 anos atrás

README.md

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->json();
// => [
//  'whatever' => 'was returned',
// ];

Installation

composer require kitetail/zttp