PHP code example of phauthentic / correlation-id

1. Go to this page and download the library: Download phauthentic/correlation-id 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/ */

    

phauthentic / correlation-id example snippets


$middleware = new CorrelationIDMiddleware(
    CorrelationID::toString()
);

$response->withHeader('CorrelationID', CorrelationId::toString());