PHP Classes

WHM XML API: Manipulate Cpanel/WHM accounts using its XML API

Recommend this page to a friend!

  Author Author  
Name: Arash Hemmat <contact>
Classes: 2 packages by
Country: Iran Iran
Age: 34
All time rank: 3702 in Iran Iran
Week rank: 534 Down12 in Iran Iran Down

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can be used to manipulate Cpanel/WHM hosting accounts using the XML Web services API.

It can establish secure HTTP connections to a Web server to manage Cpanel/WHM accounts and authenticates on behalf of a given Cpanel user.

The class can execute several types of requests:

- Retrieve the XML API version
- Retrieve the server host name
- List the active hosting accounts
- List the available packages
- Create a new account
- Retrieve a summary about an account
- Change the password of an account
- Suspend, unsuspend and terminate an account
- Upgrade or downgrade a package

********** Note *************
This software is being published under GNU GPL license that means it comes with no warranty, so use at your own risk.

********* Usage *************
- You need PHP 5.x to run this class.
This class is very easy to use just take a look at test.php to understand how you should use it.
You must read the "WHM XML API Document" before using this class:
You can see the inputs and outputs of each function in the page above.
I have implemented the functions listed below, other functions will be implemented in the next version.

******List of implemented functions******
- version()
- gethostname()
- listaccts ()
- listPkgs()
- createAccount($acctDomain,$acctUser,$acctPass,$acctPackg)
- accountsummary($accUser)
- passwd($accUser,$pass)
- suspend($acctUser,$reason)
- unsuspend($acctUser)
- terminate($acctUser,$keepDns=0)
- changepackage($accUser,$pkg)

****** FAQ *********

Q. I'm getting warning like "Warning: SimpleXMLElement::__construct()...." what is the problem?
A. You did not enter the correct "username" or "whm host" or "whm hash" in the init() function and the class has not been initilized correctly.

Q.I'm getting this error while creating a new account "You do not have access to create that package (package_name)!" what is the problem
A.You have entered a package name that do not exist in your whm account.

******* Contact *********
Send your comments and questions to this email address:  arash.hemmat _\/_at_/\_

Arash Hemmat 
Tuesday, September 25 2007

  Classes of Arash Hemmat  >  WHM XML API  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Base name: whm
Description: Manipulate Cpanel/WHM accounts using its XML API
Version: 1.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 4556 users
All time rank: 599
Week users: 0 users
Week rank: 679 Equal
  Groups   Rate classes User ratings   Trackback  
  Applications   Related pages   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image Hosting Web hosting tools and extensions View top rated classes

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (94%) Good (91%) Sufficient (75%) Good (86%) - - Sufficient (72%) 250
Month: Not yet rated by the users

  Pages that reference this package  
cPanel & WHM - a rant of sorts
Whilst cPanel itself is excellent, particularly with the way it gives so much power to users in a safe and intuitive way, WHM certainly is not...
cPanel / WHM - a kind of rant
Anyone who knows me will know that I’m pretty geeky; no to mention opinionated...
cPanel / WHM - a kind of rant
Anyone who knows me will know that I’m pretty geeky; no to mention opinionated. One program that frequently irritates me is Web Host Manager, that hideous pile of junk which is, effectively, the administration side of cPanel...
cPanel WHM + PHP WHM XML API Class
Me gustaria hacer una pagina como esta
bueno hace unos meses... yo tenía un host reseller... y quería tener un modulo para administrar mis cuentas de host... escuché mucho de esos sistemas como ClientExec, WHMCS, o el gratuito PHPCoin... y me entró esas ganas de querer hacerme el mío...

Latest pages that reference packages Latest pages that reference packages

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
WHM XML API document
This is the document of WHM XML API that users should read before using this class.

  Files folder image Files  
File Role Description
Accessible without login Plain text file COPYING Lic. license
Accessible without login Plain text file README Doc. documentation
Accessible without login Plain text file test.php Example example
Plain text file whm.php Class whm xml api class

Install with Composer Install with Composer - Download Download all files: whm.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.