PHPackages                             previewict/cpanel-php-lib - 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. previewict/cpanel-php-lib

ActiveLibrary[API Development](/categories/api)

previewict/cpanel-php-lib
=========================

cPanel PHP Library for managing WHM &amp; cPanel from any PHP application. Easy to use. Install with Composer and start using it.

5345PHP

Since May 24Pushed 10y ago3 watchersCompare

[ Source](https://github.com/PreviewTechnologies/cpanel-php-lib)[ Packagist](https://packagist.org/packages/previewict/cpanel-php-lib)[ RSS](/packages/previewict-cpanel-php-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

cPanel PHP Library
==================

[](#cpanel-php-library)

cPanel PHP Library for managing WHM &amp; cPanel from any PHP application. Easy to use. Install with Composer and start using it.

\#####Installation **Install it via Composer**

```
sudo composer install
```

*copy* and *paste* **config.sample** and rename it to **config.php**. Now replace all the variable in config file with your server url, root username and password.

And you are done!

\#####cPanel/WHM SDK Documentation To use it you have to know the original [cPanel/WHM documentation](https://documentation.cpanel.net/display/SDK/Guide+to+WHM+API+1). All the commands and parameters are explained there. Based on their documentation suppose you need to call a url to get an account summery with this **/json-api/accountsummary?api.version=1&amp;user=username** url.

To call that url you have to write `$request->build('accountsummary', array('params' => array('user' => 'username', 'api.version' => 1)))`. First parameter will be command name and second parameter will hold an array where you can pass additional url parameter with `array('params' => array())` params key.

\#####Usage To get the list of Packages from your WHM.

```
$request = new \CpanelPhp\Cpanel\Request(WHMURL, WHMPORT);
$response = $request->build('listpkgs')->data;
print_r($response);
```

*Note: if you face any problem please create issue in this repository*

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b54bd4f801cd13d8413a2a3484c2eb64180741b147419c2490555059fc7c48e?d=identicon)[shahariaazam](/maintainers/shahariaazam)

---

Top Contributors

[![shahariaazam](https://avatars.githubusercontent.com/u/1095008?v=4)](https://github.com/shahariaazam "shahariaazam (7 commits)")

### Embed Badge

![Health badge](/badges/previewict-cpanel-php-lib/health.svg)

```
[![Health](https://phpackages.com/badges/previewict-cpanel-php-lib/health.svg)](https://phpackages.com/packages/previewict-cpanel-php-lib)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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