-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18ada2f
commit f094699
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# 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 | ||
``` | ||
composer require naif/php-cpanel-email | ||
|
@@ -63,7 +69,7 @@ Response: | |
] | ||
``` | ||
|
||
Delete an new email account | ||
Delete an email account | ||
```php | ||
$cpanel->delete('email_address') | ||
|
||
|
@@ -74,6 +80,28 @@ Response: | |
] | ||
``` | ||
|
||
Change an email account's password | ||
```php | ||
$cpanel->changePassword('username','password') | ||
|
||
Response: | ||
[ | ||
"status" => "success" | ||
"message" => "Password has been changed successfully" | ||
] | ||
``` | ||
|
||
Change an email account's disk quota | ||
```php | ||
$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: | ||
[email protected] | ||
|
||
|