Installation & Client Integration
Integrating License Boss into your commercial WordPress plugin requires only 4 lines of configuration code.
IMPORTANT
Never hardcode your master server secret in distributed client plugins. The client SDK communicates solely via public REST validation tokens and domain-bound hashes.
1. Server-Side Installation
Upload license-boss.zip to your WordPress administration dashboard via Plugins > Add New > Upload Plugin, or install via WP-CLI:
wp plugin install /path/to/license-boss.zip --activate
Upon activation, License Boss provisions 5 optimized relational tables:
wp_lb_productswp_lb_licenseswp_lb_activationswp_lb_releaseswp_lb_telemetry
2. Drop-In Client SDK
Include class-license-boss-client.php in your distributed plugin’s includes/ directory:
require_once plugin_dir_path(__FILE__) . 'includes/class-license-boss-client.php';
new License_Boss_Client([
'product_slug' => 'my-super-plugin',
'server_url' => 'https://yoursite.com/wp-json/license-boss/v1',
'version' => '1.0.0',
'plugin_file' => __FILE__,
]);
3. Remote Activation Endpoint
Clients activate their purchase with a simple POST request to your licensing server:
curl -X POST https://yoursite.com/wp-json/license-boss/v1/activate
-H "Content-Type: application/json"
-d '{
"license_key": "LB-XXXX-YYYY-ZZZZ",
"product_slug": "my-super-plugin",
"domain": "client-site.com"
}'
Successful activation returns:
{
"success": true,
"status": "active",
"product": "my-super-plugin",
"domain": "client-site.com",
"expires_at": "2027-09-26 00:00:00",
"signature": "3f98a28c41d1e44f91048b..."
}
Or don't do it yourself
Hand the whole thing
to us.
Graphics, social, websites. We are the startup team for small brands that do not have one. You keep the focus. We run the output.
Book a Call →