PHP Classes

PHP Cpanel Create Subdomain: Manage subdomains of a domain using CPanel

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 119 All time: 9,504 This week: 206Up
Version License PHP version Categories
domainphp 1.0.0Free For Educatio...5Networking, PHP 5, Web services, Hosting


This class can manage subdomains of a domain using CPanel.

It can send HTTP requests to the CPanel API Web server of a hosting service to perform several operations with subdomains of a given domain managed using CPanel.

Currently it can create a new sub-domain, or delete a sub-domain the and respective files in hosting space dedicated to that sub-domain.

Picture of Mostafa Abd-El-Hamid
  Performance   Level  
Name: Mostafa Abd-El-Hamid <contact>
Classes: 23 packages by
Country: Egypt Egypt
Age: 40
All time rank: 5595 in Egypt Egypt
Week rank: 354 Up6 in Egypt Egypt Down
Innovation award
Innovation award
Nominee: 5x


namespace manondomain;
// domainHandle::manageSubDomain('subdomain','username','password','topleveldomain','deleter'); this can be used to delete the subdomain



This is how to manage subdomains for each user when creating an account.

It is specialized to manage CPanel subdomains in PHP.

to create and manage it.

  Files folder image Files  
File Role Description
Plain text file DomainHandler.php Class Class source
Accessible without login Plain text file indexHandle.php Example Example script
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,504
This week:206Up