PHP Classes

PHP DirectAdmin: Manage hosting accounts with DirectAdmin Web panel

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 32%Total: 2,820 This week: 1All time: 1,339 This week: 560Up
Version License Categories
phpdirectadmin 1.0.0GNU Lesser Genera...PHP 5, Systems administration, Web se..., H...
Description 

Author

This class can be used to manage hosting accounts controlled by the DirectAdmin Web panel.

It connects to a DirectAdmin panel Web server and can send commands to perform several types of account management actions.

Currently it can:

- Create and modify accounts
- Manage account e-mail addresses
- Create databases
- Take backups
- Retrieve the list of available backups
- Retrieve account usage statistics of disk space, bandwidth, FTP and databases

Picture of Hadar Porat
Name: Hadar Porat <contact>
Classes: 5 packages by
Country: United States United States
Age: 40
All time rank: 31336 in United States United States
Week rank: 411 Down48 in United States United States Down

Details

phpDirectAdmin Class This class can be used to communicate with DirectAdmin (http://www.directadmin.com) Hosting Panel. The class includes emails management, creating and modifying account, disk and bandwidth usage and some more. The function uses cURL lib for communication. Function inside: ---------------- The functions that can be used are: getStats() - get stats array (diskspace, bandwidth, emails, ftp, databases) - both used and max createUserAccount() - create a new directadmin account modifyUserAccountPackage() - modify account to auto package customizeUserAccountPackage() - customize account package createDatabase - creates a new mysql database createBackup() - creates a account backup chmodBackup() - chmod a account backup for downloading getBackupsList() - returns backups array list getEmailList() - returns email accounts array list getEmail() - returns email account information createEmail() - creates new email account updateEmail() - updates emailbox password deleteEmail() - deletes email account Cookies: -------- The class uses cookies to store the username and password. These files should not be accessed by htdocs or public html. The cookies files don't get deleted, so if you change the username and password in the scripts, try deleting the cookies files. Error Reporting: ---------------- There is no error reporting in this class. If someone can help with that, I will gladly add it to the function...

Screenshots  
  • email_example.gif
  Files folder image Files  
File Role Description
Plain text file directadmin.inc.php Class Main Class
Plain text file email_example.php Example Emails Management Example
Plain text file LICENSE Lic. LICENSE
Plain text file README Doc. Readme

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,820
This week:1
All time:1,339
This week:560Up
User Ratings User Comments (2)
 All time
Utility:31%StarStar
Consistency:68%StarStarStarStar
Documentation:43%StarStarStar
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:32%StarStar
Rank:4194
 
The base for the class is good, but there aren't any function...
12 years ago (Tom Maaswinkel)
30%StarStar
Why not using the DA api?
15 years ago (Olaf Lederer)
22%StarStar