gkimani / cyberpanel
CyberPanel 的非官方 PHP SDK
1.0.0
2024-07-11 16:00 UTC
Requires
- php: ^7.4 || ^8.0 || ^8.1 || ^8.2 || ^8.3
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^8.5.14|^9.4
- psalm/plugin-phpunit: ^0.18.4
- squizlabs/php_codesniffer: ^3.10
- vimeo/psalm: ^4.17
This package is auto-updated.
Last update: 2024-09-12 06:51:49 UTC
README
📦 基于 PHP 的非官方 SDK,具有类型提示功能
简介
在您的 PHP 应用程序中消费 CyberPanel API
- 用户
- 包
- 网站
- DNS
- 数据库
- 电子邮件
- 子域名
- FTP
- 备份
- 合作伙伴
安装
使用 Composer 安装 SDK。
composer require gkimani/cyberpanel
用法
// replace the class Website with either:
--> Ftp, User, Package, ChildDomain, Email, Database, Dns, Backup
$cyberPanelClient = new Website('https://panel.cyberpanel.net', 'admin', 'password');
$response = $cyberPanelClient->createWebsite(
'admin',
'cyberpanel.net',
'Default',
'usman@cyberpersons.com',
'PHP 8.1',
'admin',
0,
0,
0
);
// $response handles exceptions for errors that occur during HTTP requests
安全性
如果您发现任何安全相关的问题,请通过电子邮件 josephgodwinke@gmail.com 而不是使用问题跟踪器。
致谢
感谢迄今为止为该项目做出贡献的每一个人。您可以在这里阅读贡献指南。
许可证
MIT 许可证。请参阅许可证文件以获取更多信息。
