detain/myadmin-cpanel-vps-addon

Cpanel Addon for VPS Module in MyAdmin

Maintainers

Package info

github.com/myadmin-plugins/cpanel-vps-addon

Type:myadmin-plugin

pkg:composer/detain/myadmin-cpanel-vps-addon

Statistics

Installs: 392

Dependents: 0

Suggesters: 0

Stars: 9

Open Issues: 2

v2.0.0 2019-04-04 08:06 UTC

This package is auto-updated.

Last update: 2026-03-30 05:31:14 UTC


README

Tests Latest Stable Version Total Downloads License

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.