1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2025-02-01 12:31:38 +01:00
2018-11-07 03:24:38 -08:00
..
2018-11-07 03:24:38 -08:00
2018-11-07 03:24:38 -08:00
2018-11-07 03:24:38 -08:00
2018-11-07 03:24:38 -08:00
2018-11-07 03:24:38 -08:00
2018-11-07 03:24:38 -08:00

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