1. Go to this page and download the library: Download simplon/signr 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/ */
use Simplon\Signr\Signr;
$signedRequest = 'xxxzzzyyy';
$secretKeySignedRequest = '123456';
// lets hold the instance
$signr = new Signr()
->setSignedRequest($signedRequest)
->setSecretKey($secretKeySignedRequest)
->read();
// is expired?
$isExpired = $signr
->setExpireTimeMinutes(120) // time to run against the expiration
->isExpired();
if($isExpired === TRUE)
{
echo "SignedRequest is expired!";
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.