PHP code example of maatify / php-return-target
1. Go to this page and download the library: Download maatify/php-return-target 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/ */
maatify / php-return-target example snippets
$service = new HmacReturnTargetService(
new ReturnTargetConfig('admin-auth', 60),
$hostKeyProvider,
$hostClock,
$optionalHostRestrictionPolicy,
);
$token = $service->issue('/orders/15');
$verified = $token === null ? null : $service->verify($token);