sigmie / http
The Sigmie HTTP package.
v1.0.1
2023-12-10 08:49 UTC
Requires
- php: ^8.1
- adbario/php-dot-notation: ^2.2
- elastic/transport: ^8.5
- guzzlehttp/guzzle: ^7.2
- guzzlehttp/psr7: ^2.4
- dev-master
- v1.0.1
- v1.0.0
- 0.x-dev
- 0.38.1
- v0.38.0
- v0.37.4
- v0.37.3
- v0.37.2
- v0.37.1
- v0.37.0
- v0.36.0
- v0.35.1
- v0.35.0
- v0.34.0
- v0.33.0
- v0.32.0
- v0.31.0
- v0.30.0
- v0.29.0
- v0.28.2
- v0.28.1
- v0.28.0
- v0.27.1
- v0.26.0
- v0.25.1
- v0.25.0
- v0.24.2
- v0.24.1
- v0.24.0
- v0.23.3
- v0.23.2
- v0.23.1
- v0.23.0
- v0.22.1
- v0.22.0
- v0.21.0
- v0.20.0
- v0.19.0
- v0.18.0
- v0.17.0
- v0.16.0
- v0.15.0
- v0.14.0
- v0.13.0
- v0.12.0
- v0.11.0
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.3
- v0.9.2
- v0.9.0
- v0.8.6
- v0.8.5
- 0.8.1.x-dev
- 0.8.1
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
This package is auto-updated.
Last update: 2024-10-10 10:37:06 UTC
README
This is a simple HTTP client. It allows you to interact with the JSON APIs in a more convenient and efficient way.
Installation
You can install the package via composer:
composer require sigmie/http
Usage
Here is a basic example of how to use the client:
use GuzzleHttp\Psr7\Uri; use Sigmie\Http\Contracts\JSONResponse; use Sigmie\Http\JSONClient; use Sigmie\Http\JSONRequest; $http = JSONClient::create( [ "https://api.example.com/v1", ], [ 'connect_timeout' => 30 ] ); $request = new JSONRequest('GET', new Uri('/campaigns')); /** @var JSONResponse $response */ $response = $http->request($req);