39

GitHub - kitetail/zttp: A developer-experience focused HTTP client, optimized fo...

 5 years ago
source link: https://github.com/kitetail/zttp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK