PHP code example of fintech-systems / virtualmin-api
1. Go to this page and download the library: Download fintech-systems/virtualmin-api 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/ */
fintech-systems / virtualmin-api example snippets
use \FintechSystems\VirtualminApi\VirtualminApi;
$api = new VirtualminApi(
'hostname' => 'virtualmin.test',
'username' => 'root',
'password' => '********'
);
$api->getDomains();
VirtualminApi::getDomains();
use \FintechSystems\VirtualminApi\VirtualminApi;
$api = new VirtualminApi;
$api->changePlan('example.com', 'New Plan Name');
VirtualminApi::changePlan('example.com', 'New Plan Name');