PHP code example of manueldimmler / hmac-signature-middleware

1. Go to this page and download the library: Download manueldimmler/hmac-signature-middleware 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/ */

    

manueldimmler / hmac-signature-middleware example snippets


$signatureMiddleware = new Http\Middleware\HmacSignatureMiddleware('secret key'):

/** @var \Psr\Http\Message\ResponseFactoryInterface $responseFactory */
$signatureMiddleware = new Http\Middleware\HmacVerificationMiddleware('secret key', $responseFactory):