PHP code example of freshost / ispconfig-restapi

1. Go to this page and download the library: Download freshost/ispconfig-restapi 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/ */

    

freshost / ispconfig-restapi example snippets

 php
$call = new ISPconfigAPI(['user' => 'remote_user', 'pass' => 'changeme', 'url' => 'https://ispconfig.local:8080']);

$client = $call->call("client_get", ["client_id" => 1]);

print_r($client);