2017 © Pedro Peláez
 

library chat-laravel

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

image

banckle/chat-laravel

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

  • Tuesday, October 14, 2014
  • by masood-anwer
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Banckle.Chat for Laravel

This is a Laravel Package to use Banckle.Chat SDK for PHP in Laravel applications quickly and easily., (*1)

Installation

Add the following lines to your composer.json file., (*2)

require: {
    "banckle/chat-sdk-php": "dev-master",       
    "banckle/chat-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\Chat\ChatServiceProvider',

Publish config files from the terminal., (*5)

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., (*6)

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, (*7)

Usage

Anywhere in your application when you need to access class, just do:, (*8)

// 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., (*9)

The Versions

14/10 2014

dev-master

9999999-dev https://github.com/BanckleMarketplace/Banckle.Chat-For-Laravel

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

  Sources   Download

The Requires

 

by Masood Anwer

laravel cloud sdk chat banckle