https://github.com/josephgodwinkimani/cyberpanel-php
PHP SDK for CyberPanel (https://cyberpanel.net)
https://github.com/josephgodwinkimani/cyberpanel-php
Last synced: 7 months ago
JSON representation
PHP SDK for CyberPanel (https://cyberpanel.net)
- Host: GitHub
- URL: https://github.com/josephgodwinkimani/cyberpanel-php
- Owner: josephgodwinkimani
- License: mit
- Created: 2024-07-11T08:14:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:56:14.000Z (8 months ago)
- Last Synced: 2025-01-27T18:45:49.649Z (8 months ago)
- Language: PHP
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
📦 Unofficial SDK for PHP with Type hinting
[](https://packagist.org/packages/gkimani/cyberpanel)
[](https://packagist.org/packages/gkimani/cyberpanel)
[](https://packagist.org/packages/gkimani/cyberpanel)
[](https://github.com/josephgodwinkimani/cyberpanel-php/actions/workflows/styles.yml)
[](https://github.com/josephgodwinkimani/cyberpanel-php/actions/workflows/tests.yml)
[](https://github.com/josephgodwinkimani/cyberpanel-php/actions/workflows/psalm.yml)
[](https://github.com/josephgodwinkimani/cyberpanel-php/actions/workflows/phpstan.yml)## Introduction
Consume CyberPanel APIs inside your PHP Application
- [x] User
- [x] Package
- [x] Website
- [x] DNS
- [x] Database
- [x] Email
- [x] Child Domain
- [x] FTP
- [x] Backup
- [ ] Partner## Install
Install the SDK using [Composer](https://getcomposer.org/).
```bash
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](.github/CONTRIBUTING.md).
## License
The MIT License. Please see [License File](LICENSE.md) for more information.