One-line license verification for your applications
curl -O https://lisensetech.com/downloads/lisense.zip
<?php
// Single-line integration
require_once __DIR__.'/path/to/lisense/laas-client.php';
if (!defined('LAAS_CLIENT_LOADED')) {
http_response_code(500);
echo 'laas_client.php was not loaded correctly.';
exit;
};
// License verification happens automatically
?>
/license-error.php
<?php
// license-error.php
session_start();
$error = $_SESSION['license_error'] ?? [
'code' => 'unknown',
'message' => 'License verification failed'
];
?>
<!-- Your HTML here -->
<div class="error-message">
<h1>Error: <?= htmlspecialchars($error['code']) ?></h1>
<p><?= htmlspecialchars($error['message']) ?></p>
<?php if (isset($error['renewal_url'])): ?>
<a href="<?= $error['renewal_url'] ?>">Renew License</a>
<?php endif; ?>
</div>
Code | Description |
---|---|
expired | License has expired |
invalid | License code is invalid |
tamper_detected | Security Alert |
unknown | License Error |
not_found | License not registered |
deactivated | License deactivated by Developer |
service_unavailable | System maintenance in progress |
rate_limit_exceeded | Too many verification attempts |
connection_failed | Could not verify license |
class LAAS {
const API_URL = 'https://api.lisensetech.com/v1/validate.php';
const LICENSE_CODE = 'YOUR_LICENSE_CODE'; // Set your license here
const APP_ID = 1; // Your application ID
const CACHE_TTL = 3600; // Cache duration in seconds
}
Test different license scenarios without affecting your production environment. This sandbox simulates API responses for development and debugging purposes.
{ "status": "Select a scenario to test" }
Download the laas-client.php
file
Include it in your application code lisense/laas-client.php
Set your license code in the client file
Create license-error.php
file