1. Go to this page and download the library: Download amegatron/cryptoapi 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/ */
public function postChecklicense() {
$licenseKey = DecryptedInput::get('licenseKey');
// Perform some logic to determine whether the received license key is valid or has not expired for example
// Most probably retreiving this info from database.
$licenseIsValid = true;
$licenseExpiresAt = '2014-12-31 23:59:59';
$response = array(
'isValid' => $licenseIsValid,
'liceseExpiresAt' => $licenseExpiresAt;
);
return json_encode($response);
}
public function __construct() {
$this->afterFilter(
'cryptOut',
array(
'except' => array('postInit'),
)
);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.