License Registration
Licensing is required to download and run the plugin on non-local domains. Klub verifies your license key against the current host for non-local environments. Use environment variables instead of hardcoding keys in versioned files.
License key
.env
KLUB_LICENSE_KEY="your-license-key"
config/config.php
<?php
return [
'bnomei.klub.license.key' => fn() => env('KLUB_LICENSE_KEY'),
];
Staging and production domains
On staging servers, point the license check at your production domain by setting bnomei.klub.license.domain to the production URL. Make sure the license is registered for that domain in your Klub account.
<?php
return [
'bnomei.klub.license.key' => fn() => env('KLUB_LICENSE_KEY'),
'bnomei.klub.license.domain' => 'https://www.example.com',
];
Licenses are still tied to production domains. See Klub account for managing domains and keys.