Download the PHP package darthsoup/php-whmcs-api without Composer
On this page you can find all versions of the php package darthsoup/php-whmcs-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-whmcs-api
PHP WHMCS API Client
A simple, PSR-7 compatible WHMCS API client for PHP, inspired by GitLabPHP/Client.
Requirements
- PHP ^7.4 | ^8.0 | ^8.1 | ^8.2 | ^8.3 | ^8.4
- PHP extensions:
curl,json,mbstring
Installation
Usage
Initialize the client
API access key
If your WHMCS instance has an $api_access_key set in configuration.php, pass it via accessKey() during client setup:
The access key is automatically appended to every API request body.
Endpoints
| Name | Status |
|---|---|
| Addons | Complete |
| Affiliates | Complete |
| Authentication | Complete |
| Billing | Complete |
| Client | Complete |
| Domains | Complete |
| Orders | Complete |
| Products | Complete |
| Servers | Complete |
| Service | Complete |
| Support | Incomplete |
| System | Complete |
| Ticket | Incomplete |
| Users | Complete |
Examples
Get clients
Get all orders
Call a custom API route
If your WHMCS instance exposes custom API routes, you can call them directly without extending the library:
More examples can be found in the /examples directory.
Disclaimer
This client follows the WHMCS API documentation. Note that parts of the official API documentation are incomplete or inconsistently documented — please verify behaviour against your WHMCS version.
Support
License
This package is released under the MIT License. See the bundled LICENSE file for details.
All versions of php-whmcs-api with dependencies
ext-json Version *
psr/http-client-implementation Version ^1.0
psr/http-factory-implementation Version ^1.0
psr/http-message Version ^1.1 || ^2.0
php-http/client-common Version ^2.6
php-http/discovery Version ^1.17
php-http/httplug Version ^2.4
symfony/options-resolver Version ^5.0 || ^6.0 || ^7.0