PHP code example of sburina / laravel-whmcs-up
1. Go to this page and download the library: Download sburina/laravel-whmcs-up library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sburina / laravel-whmcs-up example snippets
Sburina\Whmcs\WhmcsServiceProvider::class
'Whmcs' => Sburina\Whmcs\Facades\Whmcs::class,
// Getters
sbGetProducts($pid = null, $gid = null, $module = null);
sbGetClients($limitstart = null, $limitnum = null, $sorting = null, $search = null);
sbGetClientsDetails($email = null, $clientid = null, $stats = false);
// Login
sbValidateLogin($email, $password2);
// AutoLogin
getAutoLoginUrl($goto = null);
redirectAutoLogin($goto = null);
\Whmcs::sbGetClientsDetails($email);
\Whmcs::GetClientsDetails([
'email' => '[email protected] '
]);
\Whmcs::GetClientsProducts([
'clientid' => 18122013
]);
\Whmcs::GetInvoice([
'invoiceid' => 100001
]);
$whmcs = app('whmcs');
$whmcs->GetInvoice([
'invoiceid' => 100001
]);
public function boot()
{
$this->registerPolicies();
Auth::provider('whmcs', function () {
return new \Sburina\Whmcs\UserProvider();
});
}
'providers' => [
'users' => [
'driver' => 'whmcs',
],
return \Whmcs::redirectAutoLogin();
return \Whmcs::redirectAutoLogin('cart.php');
$url = \Whmcs::getAutoLoginUrl();
$url = \Whmcs::getAutoLoginUrl('cart.php');
bash
php artisan vendor:publish --provider=Sburina\Whmcs\WhmcsServiceProvider