PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 119 All time: 9,519 This week: 206Up
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: 214 Up2 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 (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:119
This week:0
All time:9,519
This week:206Up