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 This week: 1All time: 9,501 This week: 560Up
Version License PHP version Categories
domainphp 1.0.0Free For Educatio...5Networking, PHP 5, Web services, Hosting
Description 

Author

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: 51 Up1 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
namespace manondomain;
require
'handle/DomainHandler.php';
DomainHandle::manageSubDomain('subdomain','username','password','topleveldomain','creater');
// domainHandle::manageSubDomain('subdomain','username','password','topleveldomain','deleter'); this can be used to delete the subdomain



Details

domainPHP

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

It is specialized to manage CPanel subdomains in PHP.

to create username.domain.com 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 README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:119
This week:1
All time:9,501
This week:560Up