wangningkai / http
A developer-experience focused HTTP client, optimized for most common use cases.
v1.0.2
2020-03-09 05:58 UTC
Requires
- php: >=7.1.3
- guzzlehttp/guzzle: ^6.0
- tightenco/collect: ^5.0|^6.0|^7.0
Requires (Dev)
- laravel/lumen-framework: ^6.0
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-12-18 09:45:49 UTC
README
Http 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 :)
$response = Http::withHeaders(['Fancy' => 'Pants'])->post($url, [ 'foo' => 'bar', 'baz' => 'qux', ]); $response->status(); // int $response->isOk(); // true / false $response->json(); // => [ // 'whatever' => 'was returned', // ];
Installation
composer require wangningkai/http