PHP code example of siewwp / php-hmac-http

1. Go to this page and download the library: Download siewwp/php-hmac-http library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

siewwp / php-hmac-http example snippets


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

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

// your usual guzzle stuff

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

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

$client->setKey($key);

// your usual guzzle stuff