PHPackages                             dezento/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. dezento/cpanel-api

ActiveLibrary[API Development](/categories/api)

dezento/cpanel-api
==================

Simple wrapper class for cPanel UAPI.

1.0(5y ago)3115MITPHPPHP &gt;=7.2

Since Apr 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Dezento/cpanel-api)[ Packagist](https://packagist.org/packages/dezento/cpanel-api)[ RSS](/packages/dezento-cpanel-api/feed)WikiDiscussions main Synced 1w ago

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

Introduction
------------

[](#introduction)

Simple wrapper class for cPanel UAPI. It uses php magic methods to make simple interface.

Overview
--------

[](#overview)

[UAPI](https://api.docs.cpanel.net/cpanel/introduction/) accesses the cPanel interface's features.

#### How cPanel API Works

[](#how-cpanel-api-works)

[![image](https://user-images.githubusercontent.com/15669109/115955664-37cda200-a4f8-11eb-983c-39de9dc281a0.png)](https://user-images.githubusercontent.com/15669109/115955664-37cda200-a4f8-11eb-983c-39de9dc281a0.png)

#### How this class works ?

[](#how-this-class-works-)

This class creates methods on the fly using php magic method `__call()` to construct methods you call.

Usage is very simple you copy exact cPanel API module name from the cPanel endpoint and add word **Module** to it then call it as php method.

Example: `EmailModule()`

Then you copy exact cPanel API method name and call it as php method.

Example: ` add_mx()`

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

[](#installation)

```
composer require dezento/cpanel-api

```

Usage
-----

[](#usage)

For example you want to list all domains under cPanel account you can copy endpoint from the official [documentation](https://api.docs.cpanel.net/openapi/cpanel/operation/list_domains/).

```
/DomainInfo/list_domains

```

All you need to do then is to add word **Module** to the module name and call it as method,

**DomainInfoModule()**

and then write cPanel method name as php method.

**list\_domains()**

```
use Dezento\CpanelApi;

$cpanel = CpanelApi::setCredentials("cPanelUrl", "cPanelUser", "cPanelPassword")
        ->DomainInfoModule() // cPanel module
        ->list_domains() // cPanel Function
        ->get();

```

If you need to send some parameters you can use `setQueryParams()` method which accepts array as input.

```
use Dezento\CpanelApi;

$cpanel = CpanelApi::setCredentials("cPanelUrl", "cPanelUser", "cPanelPassword")
        ->DomainInfoModule() // cPanel module
        ->setQueryParams([
          'domain' => 'examplewebsite.com',
          'return_https_redirect' => 1
        ])
        ->single_domain_data() // cPanel Function
        ->get();

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

1847d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101515547?v=4)[comidev](/maintainers/comiDev)[@comidev](https://github.com/comidev)

---

Top Contributors

[![Dezento](https://avatars.githubusercontent.com/u/15669109?v=4)](https://github.com/Dezento "Dezento (8 commits)")

### Embed Badge

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

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

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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