detain / myadmin-kvm-vps
MyAdmin KVM VPS plugin — provides service activation, deactivation, queue processing, and settings management for KVM-based virtual private servers.
Package info
github.com/myadmin-plugins/kvm-vps
Language:Smarty
Type:myadmin-plugin
pkg:composer/detain/myadmin-kvm-vps
Requires
- php: >=5.0.0
- ext-soap: *
- 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: *
README
A MyAdmin plugin for managing KVM (Kernel-based Virtual Machine) virtual private servers. This package provides service lifecycle management including activation, deactivation, queue processing, and administrative settings for KVM-based VPS hosting across multiple datacenter locations.
Features
- Service activation and deactivation handling for KVM Linux and Windows VPS
- Queue-based provisioning through Smarty shell templates
- Administrative settings for slice pricing and server assignment
- Per-datacenter out-of-stock controls (Secaucus, Los Angeles, Texas)
- Support for standard KVM, Cloud KVM, KVMv2, and KVM Storage types
- Symfony EventDispatcher integration for hook-based architecture
Requirements
- PHP >= 5.0
- ext-soap
- symfony/event-dispatcher ^5.0
Installation
composer require detain/myadmin-kvm-vps
Usage
The plugin registers event hooks automatically through the MyAdmin plugin system. Call Plugin::getHooks() to retrieve the array of event name to callback mappings:
use Detain\MyAdminKvm\Plugin; $hooks = Plugin::getHooks(); // Returns: ['vps.settings' => [...], 'vps.deactivate' => [...], 'vps.queue' => [...]]
Running Tests
composer install vendor/bin/phpunit
License
This package is licensed under the LGPL-2.1 license.