PHP code example of sensson / laravel-directadmin
1. Go to this page and download the library: Download sensson/laravel-directadmin 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/ */
sensson / laravel-directadmin example snippets
use Sensson\DirectAdmin\Facades\DirectAdmin;
$result = DirectAdmin::post('{DIRECTADMIN_API_CALL}', []);
$result = DirectAdmin::get('{DIRECTADMIN_API_CALL}', []);
$result = DirectAdmin::get('api/admin-usage', []);
$result = DirectAdmin::become('user')->post('{DIRECTADMIN_API_CALL}');
$result = DirectAdmin::debug()->post('{DIRECTADMIN_API_CALL}', []);