PHP code example of devopssantana / aapanel
1. Go to this page and download the library: Download devopssantana/aapanel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devopssantana / aapanel example snippets
t 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]');
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();