PHP code example of matricali / akamai-token-auth
1. Go to this page and download the library: Download matricali/akamai-token-auth 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/ */
matricali / akamai-token-auth example snippets
use Matricali\Security\EdgeAuth\TokenAuth;
$edgeAuth = new TokenAuth('aabbccddeeffgg00112233445566', TokenAuth::ALGORITHM_SHA256);
/* @throws Matricali\Security\EdgeAuth\InvalidArgumentException */
$edgeAuth->setIp($client_ip);
$authUrl = $edgeAuth->generateToken();