Download the PHP package xililo/whm-api without Composer
On this page you can find all versions of the php package xililo/whm-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package whm-api
# WHM API
A tidy PHP wrapper for the cPanel WHM API 1.
Overview
This package provides a lightweight, dependency-minimal client for interacting with WHM API 1 JSON endpoints. It includes support for:
- WHM token authentication
- account management and account queries
- hosting plan creation, updates, and inspection
- login session and provider login URL helpers
Requirements
- PHP ^8.1
- ext-curl
- ext-json
Installation
Quick Start
Usage
Authentication
WHM token calls use the header format documented by cPanel:
Create a WHM user session
Fetch a provider login URL
Accounts
List accounts
Create an account
Change package
Suspend / unsuspend
Change password
Hosting Plans
List plans
Create a plan
Update a plan
Inspect a plan
Response Model
Every resource returns an ApiResponse instance with helpers such as:
Notes
- The client calls
https://{host}:2087/json-api/{function}by default. - It automatically appends
api.version=1. - The client is dependency-light and uses cURL directly.
- Extra parameters may be passed through for WHM-specific query options.
Links
- Packagist: https://packagist.org/packages/xililo/whm-api
- cPanel WHM API docs: https://api.docs.cpanel.net/whm/introduction
License
MIT
All versions of whm-api with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package xililo/whm-api contains the following files
Loading the files please wait ...