1. Go to this page and download the library: Download webilia/wp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webilia / wp example snippets
use Webilia\WP\Plugin\Licensing;
// Webilia Licensing Server
$licensing = new Licensing(
'lsdaddbok_purchase_code', // Key name for get_option function
'lsdaddbok_activation_id', // Key name for get_option function
'listdom-booking/listdom-booking.php', // Plugin (Add-on) Basename
'https://api.webilia.com/licensing' // URL of Licensing Server
);
// Activation
[$status, $message, $activation_id] = $licensing->activate('sample-license-key');
// Deactivation
if($licensing->deactivate('sample-license-key'))
{
// Do something
}
// Validation
if($licensing->isValid())
{
// Do something
// Perhaps run the add-on
}
use Webilia\WP\Plugin\Licensing;
use Webilia\WP\Plugin\Update;
// Webilia Licensing Server
$licensing = new Licensing(
'lsdaddbok_purchase_code', // Key name for get_option function
'lsdaddbok_activation_id', // Key name for get_option function
'listdom-booking/listdom-booking.php', // Plugin (Add-on) Basename
'https://api.webilia.com/licensing' // URL of Licensing Server
);
// Webilia Update Server
new Update(
'2.1.0', // Current Plugin Version
'listdom-booking/listdom-booking.php', // Plugin (Add-on) Basename
$licensing, // Licensing Server is
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.