devopssantana / aapanel
AApanel Library is a small set of classes developed to communicate with AAPanel
0.0.1
2023-03-14 16:32 UTC
Requires
- php: ^7.1.3 || ^8.0
- ext-curl: *
- ext-json: *
README
AApanel Library is a small set of classes developed to communicate with AAPanel.
You can know more clicking here.
Highlights
- Simple installation
- Abstraction of many API methods
- Easy authentication with url and token
- You can manage many resources through your panel and allow your client to manipulate data from their domain account, creating an integrated panel.
- Composer ready and PSR-2 compliant
Installation
AAPanel is available via Composer:
"devopssantana/aapanel": "0.0.*"
or run
composer require devopssantana/aapanel
Documentation
For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:
For more details on how to use it, see an example folder in the component's directory. It works like this:
Site endpoint:
<?php require __DIR__ . "/../vendor/autoload.php"; const AAPANEL_SERVER_URL = 'Your Server URL'; const AAPANEL_SERVER_KEY = 'Your Key'; use DevOpsSantana\AAPanel\AAPanelSite; //site $aapanel = new AAPanelSite(); /** List All Sites */ $aapanel->List(); /** Size Site Dir */ $aapanel->Size('yourdomain.com'); /** Anti Xss */ $aapanel->BaseDir('[your site id]', 'yourdomain.com'); /** Get Index */ $aapanel->GetIndex('[your site id]');
System endpoint:
<?php require __DIR__ . "/../vendor/autoload.php"; const AAPANEL_SERVER_URL = 'Your Server URL'; const AAPANEL_SERVER_KEY = 'Your Key'; use DevOpsSantana\AAPanel\AAPanelSystem; $aapanel = new AAPanelSystem(); /** Painel Info */ $aapanel->Info(); /** Disk Info */ $aapanel->Disk(); /** Network Info */ $aapanel->Network(); /** Size Info */ $aapanel->Size();
Others
You also have classes for the endpoints of many panel features, practical examples are available in the examples folder of this library. Please consult there.
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email rogeriossilva1@gmail.com instead of using the issue tracker.
Thank you
Credits
- Rogério Santana (Developer)
- All Contributors (This Rock)
License
The MIT License (MIT). Please see License File for more information.