Consume CyberPanel APIs inside your PHP Application
- User
- Package
- Website
- DNS
- Database
- Child Domain
- FTP
- Backup
- Partner
Install the SDK using Composer.
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',
'[email protected]',
'PHP 8.1',
'admin',
0,
0,
0
);
// $response handles exceptions for errors that occur during HTTP requests
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Thanks to everyone who has contributed to this project so far. You can read the contribution guide here.
The MIT License. Please see License File for more information.