Download the PHP package darthsoup/laravel-whmcs without Composer
On this page you can find all versions of the php package darthsoup/laravel-whmcs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download darthsoup/laravel-whmcs
More information about darthsoup/laravel-whmcs
Files in darthsoup/laravel-whmcs
Package laravel-whmcs
Short Description WHMCS API interface for Laravel 7.0 and up
License MIT
Informations about the package laravel-whmcs
WHMCS API for Laravel
An interface for interaction with the WHMCS API in Laravel. This Package is heavily inspired by Laravel GitLab created by Graham Campbell.
Notice:
The legacy version 0.3 can be found here
Installation
WHMCS API for Laravel requires PHP ^7.4 | ^8.0 with at least Laravel 8.
Install the package through Composer. Run the Composer require command from the Terminal:
Package will be installed automatically through composer package discovery. If not, then you need to register
the DarthSoup\Whmcs\WhmcsService
service provider in your config/app.php
.
Optionally, you can add the alias if you prefer to use the Facade:
Configuration
To get started, you'll need to publish vendor assets for Laravel-Whmcs.
This will create the config/whmcs.php
file in your app, modify it to set your configuration.
Default Connection
The option default
is where you specify the default connection.
WHMCS Connections
The option connections
is where you can add multiple connections to your whmcs instances.
You can choose between both API connection types from whmcs. These methods are password
and token
.
Example connections has been included, but you can add as many connections you would like.
Usage
via dependency injection
If you prefer to use Dependency Injection, you can easily add it to your controller as below:
Via Facade
If you prefer the classic Laravel facade style, this might be the way to go:
Real examples
For more information on how to use the WhmcsApi Client DarthSoup\WhmcsApi\Client
class, check out the documentation
at https://github.com/darthsoup/php-whmcs-api.
Support
Please open an issue in github
License
This package is released under the MIT License. See the bundled LICENSE file for details.
All versions of laravel-whmcs with dependencies
ext-json Version *
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/session Version ^8.0|^9.0|^10.0|^11.0
illuminate/events Version ^8.0|^9.0|^10.0|^11.0
darthsoup/php-whmcs-api Version ~1.3
graham-campbell/manager Version ^5.1