More info on the PHP class: http://forum.directadmin.com/showthread.php?t=258
You can install this package via Composer using:
composer require solitweb/directadmin
Basic usage. Get list of users owned by reseller:
$api = new DirectAdmin;
$api->connect("domain", 2222);
$api->set_login("username", "password");
$api->set_method('GET');
$api->query("/CMD_API_SHOW_USERS");
$api->fetch_parsed_body();
print_r($api);
The MIT License (MIT). Please see License File for more information.