Skip to content

nilsonpessim/whm-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 WHM/cPanel Connection API

  • 🤩 Installation and Configuration Repository.

💻 Requirements

Components needed to install dependencies.

  • ✔️ composer
  • ✔️ PHP 7.4+

:atom: Installation

  • In the Config folder, rename the Config-Example.php file to Config.php, open the file and enter your credentials:
define("CONF_WHM_URL", "your-domain-com.br");
define("CONF_WHM_USER", "username-whm");
define("CONF_WHM_TOKEN", "token-whm");
  • In the main directory, the composer.json file has all the project settings, just run it with composer.
composer install
  • Basic use:
require "vendor/autoload.php";
use Source\App\WHM;

$newClient = (new WHM())->client();
$account   = (new WHM())->account($newClient)->searchAccounts();

echo json_encode($account);
  • Available Functionality: WHM - Accounts
* searchAccounts (List of all accounts)
* getDetails (Details of a specific account)
* create (Create a new account)
* availableFunctions (List of API functions available for current authenticated user)
* userDomainDetails (Get a hosted domain details)
* changeDiskSpaceQuota (Modify an user's disk space quota)
* forcePasswordChange (Force user to change their password at their next login)
* getDomains (List of domains exists in the server)
* hasDigestAuth (Digest auth is enabled or disabled)
* hasMyCnfInHomeDirectory (.my.cnf file exists in user's home directory or not)
* limitBandwidth (Modify bandwidth limit)
* getUsers (List of all users in server)
* getLockedAccounts (List of all locked accounts)
* getSuspendedAccounts (List of all suspended accounts)
* createUserSession()
* changePlan()

😻 Desenvolvedor

Github Badge Linkedin Badge Whatsapp Badge

About

API de Conexão ao WHM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages