siewwp/php-hmac-http

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Guzzle http client with hmac authentication middleware

v1.1.2 2018-07-30 08:12 UTC

This package is not auto-updated.

Last update: 2021-11-27 14:18:34 UTC


README

Usage

Providing the key on constructor

$key = Acquia\Hmac\Key($appId, $appSecret);

$client = new \Siewwp\HmacHttp\HttpClient($options, $key);

// your usual guzzle stuff

Providing the key using key setter

$client = new \Siewwp\HmacHttp\HttpClient($options, $key);

$key = Acquia\Hmac\Key($appId, $appSecret);

$client->setKey($key);

// your usual guzzle stuff