detain / myadmin-litespeed-licensing
LiteSpeed Licensing Class
Package info
github.com/myadmin-plugins/litespeed-licensing
Type:myadmin-plugin
pkg:composer/detain/myadmin-litespeed-licensing
v2.0.0
2019-04-04 08:07 UTC
Requires
- php: >=5.0.0
- ext-soap: *
- detain/myadmin-litespeed-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-19 15:47:05 UTC
README
A MyAdmin plugin for provisioning and managing LiteSpeed Web Server and Load Balancer licenses. Integrates with the LiteSpeed licensing API to handle activation, deactivation, IP changes, and balance checks for both standard and VPS license types.
Features
- Activate and deactivate LiteSpeed Web Server (LSWS) and Load Balancer (LSLB) licenses
- Support for multiple license tiers: 1-CPU, 2-CPU, 4-CPU, 8-CPU, VPS, and Ultra-VPS
- IP address change handling with automatic re-provisioning
- Credit balance monitoring before order placement
- Duplicate license detection to prevent double-provisioning
- Symfony EventDispatcher integration for hook-based architecture
- Admin menu integration for license listing
Requirements
- PHP >= 5.0
- ext-soap
- symfony/event-dispatcher ^5.0
- detain/litespeed-licensing
Installation
Install with Composer:
composer require detain/myadmin-litespeed-licensing
Usage
The plugin registers itself through the MyAdmin hook system. Available hooks:
| Hook | Description |
|---|---|
licenses.settings |
Register LiteSpeed configuration |
licenses.activate |
Provision a new license |
licenses.reactivate |
Re-provision an existing license |
licenses.deactivate |
Cancel a license |
licenses.deactivate_ip |
Cancel a license by IP |
licenses.change_ip |
Change the IP on a license |
function.requirements |
Register function autoload paths |
ui.menu |
Add admin menu entries |
Running Tests
composer install vendor/bin/phpunit
License
Licensed under the LGPL-2.1-only license. See LICENSE for details.