PHP code example of mingalevme / utils-secure-link
1. Go to this page and download the library: Download mingalevme/utils-secure-link library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
const SECRET = 'YOUR_SECRET_KEY';
useMingalevme\Utils\Url\SecureLink;
$signer1 = new SecureLink(SECRET);
if (!$signer1->isValid('https://github.com/mingalevme/secure-link-php?_expires=1526393056&_sig=biyetWW5IgBPUftLF1SaOw%3D%3D')) {
thrownewException('Url is invalid or expired');
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.