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

ActiveLibrary

fafan/cpanel-php
================

Cpanel/WHM API for PHP

0.1.0(9y ago)036MITPHPPHP &gt;=5.4

Since Oct 10Pushed 9y ago1 watchersCompare

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

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

[![Code Climate](https://camo.githubusercontent.com/cfc3b2ebf7b30ad26c50d9e9c333506df7f3a6869469a5e20cfed67294da5e69/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f666166616e2f6370616e656c2d7068702f6261646765732f6770612e737667)](https://codeclimate.com/github/fafan/cpanel-php)[![Test Coverage](https://camo.githubusercontent.com/357808f528aa6bd7484f9487a5a77d6e3b3017601a7aed9565a7f37599d43755/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f666166616e2f6370616e656c2d7068702f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/fafan/cpanel-php/coverage)[![Issue Count](https://camo.githubusercontent.com/fe45f73038d5fef82e777a7723a8e44c8ecbc9d5c805471ae8f473fc6fdd874d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f666166616e2f6370616e656c2d7068702f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/fafan/cpanel-php)

CPanel/WHM API for PHP library
==============================

[](#cpanelwhm-api-for-php-library)

NOTE: This library is modified from original code of gufy/cpanel-php

I rewrite runQuery() function to use cURL instead of GuzzleHttp

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Functions](#functions)
- [Credits](#credits)

### Installation

[](#installation)

To install this package, you can run this code via your terminal

```
	composer require fafan/cpanel-php
```

Or update your `composer.json` by adding this line

```
	"fafan/cpanel-php":"^0.1"
```

Then, run this code

```
	composer update
```

### Usage

[](#usage)

For example, if you would like to get list accounts of your whm server, you can do this.

```
