Standalone PHP scripts demonstrating License Manager API integration using cURL.
| File | Description |
|---|---|
sample-app.php |
External API demo - license activation, verification, deactivation |
sample-app-internal.php |
Internal API demo - product/license management (server-to-server) |
- PHP 7.4+
- cURL extension
# Edit configuration in the file first, then run:
php sample-app.phpConfiguration:
$config = [
'api_url' => 'https://your-license-server.com',
'api_key' => 'your-external-api-key',
'product_id' => 'ABC12345',
'license_code' => 'XXXX-XXXX-XXXX-XXXX',
'client_name' => 'John Doe',
];Operations:
- Check API Connection
- Activate License
- Verify License
- Deactivate License
# Edit configuration in the file first, then run:
php sample-app-internal.phpConfiguration:
$config = [
'api_url' => 'https://your-license-server.com',
'api_key' => 'your-internal-api-key',
'server_url' => 'https://your-backend-server.com',
'server_ip' => '127.0.0.1',
];Operations:
- Check API Connection
- List/Get/Create Products
- List/Get/Create Licenses
- Block/Unblock Licenses