A MyAdmin plugin that provides cPanel license management as a VPS addon. This package integrates with the MyAdmin hosting management platform to allow automated provisioning, activation, and deactivation of cPanel licenses on VPS instances.
- Automated cPanel license activation when a VPS addon is purchased
- Automated cPanel license deactivation on cancellation with admin email notification
- IP-based license status checking before activation/deactivation
- Integration with MyAdmin's event dispatcher for hook-based plugin loading
- Configurable addon cost via the MyAdmin settings interface
Install via Composer:
composer require detain/myadmin-cpanel-vps-addonThe package registers itself automatically through the MyAdmin plugin system. The following event hooks are registered:
| Event | Handler | Purpose |
|---|---|---|
function.requirements |
getRequirements |
Registers the page requirement function |
vps.load_addons |
getAddon |
Registers the cPanel addon with the VPS module |
vps.settings |
getSettings |
Adds the cPanel cost setting to the admin UI |
The addon cost is configurable through the MyAdmin admin panel under VPS module settings. The setting VPS_CPANEL_COST controls the price charged for the cPanel license addon.
composer install
vendor/bin/phpunitTo generate a coverage report:
vendor/bin/phpunit --coverage-html build/coverageThis package is licensed under the LGPL-2.1 license.