New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

banckle/chat-laravel

This is a Laravel Package to use Banckle.Chat SDK for PHP in Laravel applications quickly and easily.
15
Install
composer require banckle/chat-laravel:dev-master
PHP:>=5.3.0
Last Updated:Oct 14, 2014
Links: GitHub  ·  Packagist
Maintainer: masood-anwer

#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.

Related Packages

banckle/helpdesk-laravel

This is a Laravel Package to use Banckle.Helpdesk SDK for PHP in Laravel applica...

13 0
banckle/crm-laravel

This is a Laravel Package to use Banckle.CRM SDK for PHP in Laravel applications...

13 0
hinet/flysystem-qiniu

qiniu cloud storage for laravel 5

7 0
zgldh/qiniu-laravel-storage

Qiniu Resource (Cloud) Storage SDK for Laravel 5/6/7/8/9

410,684 516
abcsun/qiniu-laravel

Qiniu Resource (Cloud) Storage SDK for Laravel 5

50 1