detain / myadmin-softaculous-licensing
Softaculous Licensing Class
Package info
github.com/myadmin-plugins/softaculous-licensing
Type:myadmin-plugin
pkg:composer/detain/myadmin-softaculous-licensing
v2.0.0
2019-10-18 06:45 UTC
Requires
- php: >=5.3.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: *
This package is auto-updated.
Last update: 2026-03-19 17:10:16 UTC
README
A PHP library for managing Softaculous, Webuzo, Virtualizor, and SiteMush licenses through the Softaculous NOC API. This package provides a MyAdmin plugin integration layer along with a standalone API client for license lifecycle operations including purchasing, renewal, cancellation, refunds, IP management, and auto-renewal configuration.
Features
- Full Softaculous NOC API client (
SoftaculousNOC) supporting Softaculous, Webuzo, Virtualizor, and SiteMush products - MyAdmin plugin integration with event-driven hooks for license activation, deactivation, and IP changes
- XML/Array conversion utilities (
ArrayToXML) - Invoice and billing transaction management
- Auto-renewal management
Requirements
- PHP 8.2 or higher
- ext-soap
- ext-curl
- ext-simplexml
Installation
Install via Composer:
composer require detain/myadmin-softaculous-licensing
Usage
use Detain\MyAdminSoftaculous\SoftaculousNOC; $noc = new SoftaculousNOC('your-username', 'your-password'); // Purchase a license $result = $noc->buy('198.198.198.198', '1M', 1, 'admin@example.com', 1); // List all licenses $licenses = $noc->licenses(); // Cancel a license by key $noc->cancel('88888-88888-88888-88888-88888');
Running Tests
composer install vendor/bin/phpunit
License
This package is licensed under the LGPL-2.1 license.