定制 detain/myadmin-cpanel-licensing 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

detain/myadmin-cpanel-licensing

Composer 安装命令:

composer require detain/myadmin-cpanel-licensing

包简介

Cpanel Licensing Class

README 文档

README

Tests Latest Stable Version Total Downloads License

A MyAdmin plugin that integrates cPanel license management into the MyAdmin billing and administration platform. It provides automated provisioning, activation, deactivation, IP changes, and billing reconciliation for cPanel licenses through the cPanel Manage2 API.

Features

  • Activate and deactivate cPanel licenses via the cPanel Manage2 API
  • Change the IP address associated with a cPanel license
  • Verify license status for a given IP
  • Retrieve license data and account lists by IP
  • KernelCare and Ksplice addon license management
  • Admin view of all active cPanel licenses
  • Unbilled license detection and reporting
  • Symfony EventDispatcher integration for the MyAdmin plugin system

Requirements

  • PHP >= 5.0
  • ext-soap
  • symfony/event-dispatcher ^5.0
  • detain/cpanel-licensing (cPanel Manage2 API wrapper)

Installation

Install with Composer:

composer require detain/myadmin-cpanel-licensing

Usage

The plugin registers itself with the MyAdmin framework through event hooks. It is loaded automatically by the plugin system when installed.

Plugin Hooks

The plugin listens on the following events:

Event Handler Description
licenses.settings getSettings Registers cPanel configuration fields
licenses.activate getActivate Provisions a new cPanel license
licenses.reactivate getActivate Re-provisions an expired license
licenses.deactivate getDeactivate Expires a cPanel license
licenses.deactivate_ip getDeactivateIp Expires a license by IP
licenses.change_ip getChangeIp Moves a license to a new IP
function.requirements getRequirements Registers function autoloading
ui.menu getMenu Adds admin menu entries

Standalone Functions

The package also provides procedural helper functions:

  • activate_cpanel($ip, $package) - Activate a license for an IP with a given package ID
  • deactivate_cpanel($ip) - Deactivate a license by IP
  • verify_cpanel($ip) - Check if a license is active
  • get_cpanel_license_data_by_ip($ip) - Get full license details
  • get_cpanel_licenses() - List all licenses on the account
  • get_cpanel_accounts_for_license_ip($ip) - Get accounts for a licensed IP

Running Tests

composer install
vendor/bin/phpunit

To generate a coverage report:

vendor/bin/phpunit --coverage-html coverage/

License

This package is licensed under the LGPL-2.1 license.

统计信息

  • 总下载量: 2.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-2.1-only
  • 更新时间: 2017-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固