PHPackages                             cjrasmussen/cpanel-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cjrasmussen/cpanel-api

ActiveLibrary[API Development](/categories/api)

cjrasmussen/cpanel-api
======================

Simple helper for interacting with cPanel's API

1.1.0(1y ago)146MITPHPPHP &gt;=7.4.0

Since Sep 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cjrasmussen/CpanelApi)[ Packagist](https://packagist.org/packages/cjrasmussen/cpanel-api)[ Docs](https://cjr.dev)[ RSS](/packages/cjrasmussen-cpanel-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

CpanelApi
=========

[](#cpanelapi)

Simple class for making requests to the WHM/cPanel API. Not affiliated with cPanel.

Usage
-----

[](#usage)

```
use cjrasmussen\CpanelApi\CpanelApi;

$cpanel = new CpanelApi($host, $username, $token, CpanelApi::API_UAPI);

// LIST DOMAINS
$response = $cpanel->request('DomainInfo', 'list_domains');
var_dump($response);

// ADD A SUBDOMAIN TO A DOMAIN
$subdomain = [
	'domain' => 'bar',
	'rootdomain' => 'foo.com',
	'dir' => 'bar',
];
$cpanel->request('SubDomain', 'addsubdomain', $subdomain);
```

Installation
------------

[](#installation)

Simply add a dependency on cjrasmussen/cpanel-api to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/cpanel-api
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

CpanelApi is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~729 days

Total

3

Last Release

659d ago

PHP version history (2 changes)v1.0PHP &gt;=7.1.0

1.1.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

[![cjrasmussen](https://avatars.githubusercontent.com/u/15007730?v=4)](https://github.com/cjrasmussen "cjrasmussen (5 commits)")

---

Tags

cpanelwhm

### Embed Badge

![Health badge](/badges/cjrasmussen-cpanel-api/health.svg)

```
[![Health](https://phpackages.com/badges/cjrasmussen-cpanel-api/health.svg)](https://phpackages.com/packages/cjrasmussen-cpanel-api)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[zanysoft/cpanel-api

Cpanel's API

2712.6k](/packages/zanysoft-cpanel-api)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)[gufy/cpanel-whm

Laravel cPanel/WHM API Package.

61124.3k2](/packages/gufy-cpanel-whm)[webreinvent/laravel-cpanel

Laravel Package of CPanel API 2.0

279.8k](/packages/webreinvent-laravel-cpanel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
