PHP code example of detain / myadmin-cloudlinux-licensing
1. Go to this page and download the library: Download detain/myadmin-cloudlinux-licensing 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/ */
detain / myadmin-cloudlinux-licensing example snippets
define('CLOUDLINUX_LOGIN', 'your-login');
define('CLOUDLINUX_KEY', 'your-api-key');
define('OUTOFSTOCK_LICENSES_CLOUDLINUX', 0); // 0 = in stock, 1 = out of stock
use Detain\MyAdminCloudlinux\Plugin;
$hooks = Plugin::getHooks();
foreach ($hooks as $event => $handler) {
$dispatcher->addListener($event, $handler);
}