detain / myadmin-cpanel-vps-addon
Cpanel Addon for VPS Module in MyAdmin
Package info
github.com/myadmin-plugins/cpanel-vps-addon
Type:myadmin-plugin
pkg:composer/detain/myadmin-cpanel-vps-addon
Requires
- php: >=5.0.0
- ext-soap: *
- detain/myadmin-cpanel-licensing: dev-master
- detain/myadmin-plugin-installer: dev-master
- symfony/event-dispatcher: >=2.8.26
Requires (Dev)
- codacy/coverage: dev-master
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: *
- phpunit/phpunit-mock-objects: *
- satooshi/php-coveralls: *
- vlucas/phpdotenv: *
This package is auto-updated.
Last update: 2026-03-30 05:31:14 UTC
README
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.
Features
- 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
Installation
Install via Composer:
composer require detain/myadmin-cpanel-vps-addon
The 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 |
Configuration
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.
Running Tests
composer install vendor/bin/phpunit
To generate a coverage report:
vendor/bin/phpunit --coverage-html build/coverage
License
This package is licensed under the LGPL-2.1 license.