Banckle.Helpdesk for Laravel
This is a Laravel Package to use Banckle.Helpdesk SDK for PHP in Laravel applications quickly and easily., (*1)
Installation
Add the following lines to your composer.json file., (*2)
require: {
"banckle/helpdesk-sdk-php": "dev-master",
"banckle/helpdesk-laravel": "dev-master"
}
Run from terminal., (*3)
composer update
Add package to the list of providers. In config/app.php, add the following line to the providers array., (*4)
'Banckle\Helpdesk\HelpdeskServiceProvider',
Publish config files from the terminal., (*5)
php artisan config:publish banckle/helpdesk-laravel
Edit the new config file in the config/packages/banckle/helpdesk-laravel and enter your Banckle API Key, email & password., (*6)
return array(
'banckleAccountUri' => 'https://apps.banckle.com/api/v2',
'banckleHelpdeskUri' => 'https://helpdesk.banckle.com/public/api/v1',
'apiKey' => '',
'email' => '',
'password' => ''
);
In config/packages/banckle, rename helpdesk-laravel to helpdesk, (*7)
Usage
Anywhere in your application when you need to access class, just do:, (*8)
// To Generate token
BanckleHelpdesk::getToken();
BanckleHelpdesk::get($apiName, $token);
This will return you object of class and you can access properties and methods of class., (*9)