A simple php class for logging in DirectAdmin panel and calling actions. It can easily extended to what you need, currently I have added only some methods for one of my projects.
login
domain_pointer_add
(single domain)domain_pointer_delete
(single and multiple with comma separated domain names)file_put
(create new file or update existing file)file_get
(get contents of existing file)web_usage_log
(get usage log)web_error_log
(get error log)