gkimani/cyberpanel

CyberPanel 的非官方 PHP SDK

1.0.0 2024-07-11 16:00 UTC

This package is auto-updated.

Last update: 2024-09-12 06:51:49 UTC


README

cyberpanel-logo

📦 基于 PHP 的非官方 SDK,具有类型提示功能

PHP Version Require Version Total Downloads GitHub Issues or Pull Requests

Coding Standards Unit Tests Static Analysis by Psalm Static Analysis by PHPStan

简介

在您的 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 许可证。请参阅许可证文件以获取更多信息。