Security & Licensing Engine
Purchase Key Verification Portal
Validate your commercial PHP scripts and API keys live against the central piCloud licensing network (piclud.online), or integrate the verification client into your application setup.
🔍 Test Purchase Key
Enter your purchase key and client domain to verify status:
💻 How to Add License Verification to Your PHP Websites
When building commercial PHP scripts, themes, or APIs for clients, include this verification function in your install.php or license.php setup file. When the client deploys the script on their hosting, it verifies their key and locks installation to their domain:
function verifyPiCloudLicense($purchase_key, $domain = '') {
$verify_url = 'https://piclud.online/api/v1/license/verify';
if (empty($domain)) {
$domain = $_SERVER['HTTP_HOST'] ?? 'localhost';
}
$ch = curl_init($verify_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'purchase_key' => trim($purchase_key),
'domain' => $domain
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response, true);
}
// Usage in installer setup wizard:
$verification = verifyPiCloudLicense($_POST['purchase_key']);
if ($verification && $verification['valid']) {
// License verified! Complete database installation.
// Proceed with script execution.
} else {
// Block installation if key is invalid, leaked or domain blocked
die("License Error: " . htmlspecialchars($verification['message']));
}
📡 Production Endpoint:
POST https://piclud.online/api/v1/license/verify