|
1 | | -# Softaculous Licensing Class |
| 1 | +# MyAdmin Softaculous Licensing |
2 | 2 |
|
3 | | -Softaculous Licensing Class |
| 3 | +[](https://github.com/detain/myadmin-softaculous-licensing/actions/workflows/tests.yml) |
| 4 | +[](https://packagist.org/packages/detain/myadmin-softaculous-licensing) |
| 5 | +[](https://packagist.org/packages/detain/myadmin-softaculous-licensing) |
| 6 | +[](https://packagist.org/packages/detain/myadmin-softaculous-licensing) |
4 | 7 |
|
5 | | -## Build Status and Code Analysis |
| 8 | +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. |
6 | 9 |
|
7 | | -Site | Status |
8 | | ---------------|--------------------------- |
9 | | - | [](https://travis-ci.org/detain/myadmin-softaculous-licensing) |
10 | | - | [](https://codeclimate.com/github/detain/myadmin-softaculous-licensing) [](https://codeclimate.com/github/detain/myadmin-softaculous-licensing/coverage) [](https://codeclimate.com/github/detain/myadmin-softaculous-licensing) |
11 | | - | [](https://scrutinizer-ci.com/g/myadmin-plugins/softaculous-licensing/?branch=master) [](https://scrutinizer-ci.com/g/myadmin-plugins/softaculous-licensing/?branch=master) [](https://scrutinizer-ci.com/g/myadmin-plugins/softaculous-licensing/build-status/master) |
12 | | - | [](https://www.codacy.com/app/detain/myadmin-softaculous-licensing) [](https://www.codacy.com/app/detain/myadmin-softaculous-licensing?utm_source=github.com&utm_medium=referral&utm_content=detain/myadmin-softaculous-licensing&utm_campaign=Badge_Coverage) |
13 | | - | [](https://coveralls.io/github/detain/myadmin-softaculous-licensing?branch=master) |
14 | | - | [](https://packagist.org/packages/detain/myadmin-softaculous-licensing) [](https://packagist.org/packages/detain/myadmin-softaculous-licensing) [](//packagist.org/packages/detain/myadmin-softaculous-licensing) [](https://packagist.org/packages/detain/myadmin-softaculous-licensing) [](https://packagist.org/packages/detain/myadmin-softaculous-licensing) [](https://packagist.org/packages/detain/myadmin-softaculous-licensing) |
| 10 | +## Features |
15 | 11 |
|
| 12 | +- Full Softaculous NOC API client (`SoftaculousNOC`) supporting Softaculous, Webuzo, Virtualizor, and SiteMush products |
| 13 | +- MyAdmin plugin integration with event-driven hooks for license activation, deactivation, and IP changes |
| 14 | +- XML/Array conversion utilities (`ArrayToXML`) |
| 15 | +- Invoice and billing transaction management |
| 16 | +- Auto-renewal management |
| 17 | + |
| 18 | +## Requirements |
| 19 | + |
| 20 | +- PHP 8.2 or higher |
| 21 | +- ext-soap |
| 22 | +- ext-curl |
| 23 | +- ext-simplexml |
16 | 24 |
|
17 | 25 | ## Installation |
18 | 26 |
|
19 | | -Install with composer like |
| 27 | +Install via Composer: |
20 | 28 |
|
21 | 29 | ```sh |
22 | 30 | composer require detain/myadmin-softaculous-licensing |
23 | 31 | ``` |
24 | 32 |
|
25 | | -## License |
| 33 | +## Usage |
| 34 | + |
| 35 | +```php |
| 36 | +use Detain\MyAdminSoftaculous\SoftaculousNOC; |
| 37 | + |
| 38 | +$noc = new SoftaculousNOC('your-username', 'your-password'); |
| 39 | + |
| 40 | +// Purchase a license |
| 41 | +$result = $noc->buy('198.198.198.198', '1M', 1, 'admin@example.com', 1); |
| 42 | + |
| 43 | +// List all licenses |
| 44 | +$licenses = $noc->licenses(); |
26 | 45 |
|
27 | | -The Softaculous Licensing Class class is licensed under the LGPL-v2.1 license. |
| 46 | +// Cancel a license by key |
| 47 | +$noc->cancel('88888-88888-88888-88888-88888'); |
| 48 | +``` |
| 49 | + |
| 50 | +## Running Tests |
| 51 | + |
| 52 | +```sh |
| 53 | +composer install |
| 54 | +vendor/bin/phpunit |
| 55 | +``` |
| 56 | + |
| 57 | +## License |
28 | 58 |
|
| 59 | +This package is licensed under the LGPL-2.1 license. |
0 commit comments