PHPackages                             akashrajput9/php-cpanel-email-master - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. akashrajput9/php-cpanel-email-master

ActiveLibrary[HTTP &amp; Networking](/categories/http)

akashrajput9/php-cpanel-email-master
====================================

This package will help to fetch emails from cPanel or create emails to cPanel

03PHP

Since Feb 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/akashrajput9/php-cpanel-email-master)[ Packagist](https://packagist.org/packages/akashrajput9/php-cpanel-email-master)[ RSS](/packages/akashrajput9-php-cpanel-email-master/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Laravel cPanel
==================

[](#php-laravel-cpanel)

A php laravel package to manage cPanel email accounts

- Get a list of all email accounts.
- Create a new email account.
- Delete an email account.
- Change an email account's password.
- Change an email account's disk quota.

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

[](#installation)

```
composer require naif/php-cpanel-email

```

If your Laravel below 5.5 you need to add service provider and alias to config/app.php

```
Under Providers:
\Naif\cPanelMail\cPanelServiceProvider::class,

Under aliases:
'cPanel' => \Naif\cPanelMail\Facades\cPanelMail::class,

```

Add these to your .env

```
CPANEL_DOMAIN=your_domain.com
CPANEL_HOST=https://your_domain.com
CPANEL_PORT=2083 // cPanel port Default is: 2083
CPANEL_VERSION=2 // cPanel api current version
CPANEL_USERNAME=your_cpanel_username
CPANEL_PASSWORD=your_cpanel_password

```

Usage
-----

[](#usage)

Create a class object

```
$cpanel = new cPanel()
```

Get a list of all email addresses

```
$cpanel->getEmailAddresses()

Response:
array:5 [
  0 => Email {#227 ▼
    +user: "abc"
    +domain: "domain.com"
    +email: "abc@domain.com"
    +_diskused: 0
    +_diskquota: 0
    +humandiskused: "None"
    +humandiskquota: "None"
    +suspended_incoming: 0
    +suspended_login: 0
    +mtime: 1539715896
   }
 ]
```

Create a new email account

```
$cpanel->create('username','password')

Response:
[
  "status" => "success"
  "message" => "Email address has been added successfully"
]
```

Delete an email account

```
$cpanel->delete('email_address')

Response:
[
  "status" => "success"
  "message" => "Email address has been deleted successfully"
]
```

Change an email account's password

```
$cpanel->changePassword('username','password')

Response:
[
  "status" => "success"
  "message" => "Password has been changed successfully"
]
```

Change an email account's disk quota

```
$cpanel->changeQuota('username',500)//quota as a number or 0 to set it as unlimited

Response:
[
  "status" => "success"
  "message" => "Email disk quota has been changed successfully"
]
```

Support:
--------

[](#support)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/9eef6bac3f05a2c6dbd93d92f4aa3cf221439b831f2234aef0d509eef2f1fe5c?d=identicon)[akashrajput9](/maintainers/akashrajput9)

---

Top Contributors

[![abdullah51627](https://avatars.githubusercontent.com/u/152089688?v=4)](https://github.com/abdullah51627 "abdullah51627 (6 commits)")

### Embed Badge

![Health badge](/badges/akashrajput9-php-cpanel-email-master/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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