hopekelldev/laravel_whmcs

A Laravel package for interacting with WHMCS API in Laravel 10

1.1.1 2024-04-27 16:06 UTC

This package is auto-updated.

Last update: 2024-04-28 10:17:55 UTC


README

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.