LaravelPackages.net
Acme Inc.
Toggle sidebar
banckle/chat-laravel

This is a Laravel Package to use Banckle.Chat SDK for PHP in Laravel applications quickly and easily.

15
0
About banckle/chat-laravel

banckle/chat-laravel is a Laravel package for this is a laravel package to use banckle.chat sdk for php in laravel applications quickly and easily.. It currently has 0 GitHub stars and 15 downloads on Packagist. Install it with composer require banckle/chat-laravel. Discover more Laravel packages by banckle or browse all Laravel packages to compare alternatives.

Last updated

#Banckle.Chat for Laravel

This is a Laravel Package to use Banckle.Chat SDK for PHP in Laravel applications quickly and easily.

Installation

Add the following lines to your composer.json file.

require: {
	"banckle/chat-sdk-php": "dev-master",		
	"banckle/chat-laravel": "dev-master"
}

Run from terminal.

composer update

Add package to the list of providers. In config/app.php, add the following line to the providers array.

'Banckle\Chat\ChatServiceProvider',

Publish config files from the terminal.

php artisan config:publish banckle/chat-laravel

Edit the new config file in the config/packages/banckle/chat-laravel and enter your Banckle API Key, email & password.

return array(
    'banckleAccountUri' => 'https://apps.banckle.com/api/v2',
    'banckleChatUri' => 'https://chat.banckle.com/v3',    
    'apiKey' => '',
    'email' => '',
    'password' => ''
);

In config/packages/banckle, rename chat-laravel to chat

Usage

Anywhere in your application when you need to access class, just do:

// To Generate token
BanckleChat::getToken();

BanckleChat::get($apiName, $token);

This will return you object of class and you can access properties and methods of class.

Star History Chart