PHP code example of lizzy / directadmin-laravel

1. Go to this page and download the library: Download lizzy/directadmin-laravel 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/ */

    

lizzy / directadmin-laravel example snippets


// config/app.php

'providers' => [
    ...
    Lizzy\DirectadminLaravel\DirectAdminServiceProvider::class,
    ...
];

'aliases' => [
    ...
    'DirectAdmin' => Lizzy\DirectadminLaravel\DirectAdmin::class,
    ...
];

Directadmin::checkConnection();

Directadmin::domainInformation();

Directadmin::UserStatistics();

Directadmin::emailInformation();

Directadmin::systemInformation();

// add a new pointer
Directadmin::createDomainPointer('example.com',true);

//remove a pointer
Directadmin::removeDomainPointer('example.com',true);
app.php
bash
php artisan vendor:publish --provider="Lizzy\DirectadminLaravel\DirectAdminServiceProvider"