Skip to content

josephgodwinkimani/cyberpanel-php

Repository files navigation

cyberpanel-logo

📦 Unofficial SDK for PHP with Type hinting

PHP Version Require Version Total Downloads GitHub Issues or Pull Requests

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

Introduction

Consume CyberPanel APIs inside your PHP Application

  • User
  • Package
  • Website
  • DNS
  • Database
  • Email
  • Child Domain
  • FTP
  • Backup
  • Partner

Install

Install the SDK using Composer.

composer require gkimani/cyberpanel

Usage

// 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

Security

If you discover any security related issues, please email josephgodwinke@gmail.com instead of using the issue tracker.

Credits

Thanks to everyone who has contributed to this project so far. You can read the contribution guide here.

License

The MIT License. Please see License File for more information.

About

PHP SDK for CyberPanel (https://cyberpanel.net)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages