Looking to hire Laravel developers? Try LaraJobs

laravel_whmcs maintained by hopekelldev

Description
A Laravel package for interacting with WHMCS API in Laravel 10
Last update
2024/04/28 11:19 (dev-master)
License
Links
Downloads
10
Tags

Comments
comments powered by Disqus

Laravel WHMCS

Latest Version Total Downloads License PHP Version Laravel Scrutinizer Code Quality

A Laravel package for integrating with the WHMCS API in Laravel 10. This package has been tested in laravel 10 and it's compatible with it, It has not been tested with the current version of laravel. We will be working on improving it. You can are free to contribute to the project.

Installation

You can install the package via Composer:

composer require hopekelldev/laravelwhmcs

Register your service provider:

Add your service provider to the providers array in config/app.php:

'providers' => [
    // Other Service Providers
    HopekellDev\LaravelWHMCS\WHMCSServiceProvider::class,
],

Add Aliases

'aliases' => [
    // Other Aliases
    'WHMCS' => HopekellDev\LaravelWHMCS\Facades\WHMCS::class,
],

Publish the configuration file:

php artisan vendor:publish --provider="HopekellDev\LaravelWHMCS\WHMCSServiceProvider" --tag="config"

Set your WHMCS credentials in your .env file:

YOUR_WHMCS_API_URL=
YOUR_API_IDENTIFIER=your_whmcs_username
YOUR_API_SECRET=your_whmcs_password

Now you can use the package in your Laravel application:

use HopekellDev\LaravelWHMCS\Facades\WHMCS;

// Example usage
$clients = WHMCS::getClients();

License

This package is licensed under the MIT License

  • see the LICENSE file for details.