Skip to content

myadmin-plugins/cpanel-vps-addon

Repository files navigation

cPanel VPS Addon for MyAdmin

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.

About

CPanel Licensing Addon for VPS Module in MyAdmin.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages