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

Daniel Supernault e78af39d75 bump guzzle dep 2 年之前
src c95d1546a6 change method name to withOptions 6 年之前
tests c95d1546a6 change method name to withOptions 6 年之前
.gitattributes 5e271c7b49 Init 7 年之前
.gitignore 5e271c7b49 Init 7 年之前
.travis.yml fb62b2e25c Added travis config 7 年之前
CONTRIBUTING.md 06dac83f12 Update CONTRIBUTING.md 7 年之前
LICENSE.md 4e1ae27263 Update LICENSE.md 7 年之前
README.md e2eac08676 Add Quick Installation Instructions 7 年之前
composer.json e78af39d75 bump guzzle dep 2 年之前
phpunit.xml.dist cc32571a7c Extract small setup class, minimize sleep 7 年之前

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