Create FTP users with cPanel API and PHP.
I built a custom web application that requires users to be able to FTP a data-feed onto the web server at regular intervals for code to then import and process the data. One of the project requirements was to automate creating an FTP account with a separate directory for each user that is created through a set of password protected administration tools.
I used cPanel API 2 and PHP to accomplish adding FTP users through PHP code rather than logging into cPanel to create them manually. By using the xmlapi PHP class, a new user is created when this class is invoked to create an FTP account.