Automate Cpanel

my site is hosted with web service provider named siteground which provides cpanel support to create various users email accounts, forwarders, domains etc.
I need to write an integrated application in my company for administrators which should provide full HR support.
Administrator do not want to go through cpanel and create forwarders, or new accounts as they want everything integrated with existing application
For this I need to automate CPanel, which means in my application I should be able to show list of all existing email accounts, list all existing forwarders, create new account, create new domain, create new forwarder etc. I am planning to write this web application in PHP.

Please let me know how can I achieve this? How can I get all the data which cPanel is showing currently?