banckle/crm-laravel

There is no license information available for the latest version (dev-master) of this package.

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

dev-master 2014-11-12 03:23 UTC

This package is not auto-updated.

Last update: 2024-12-03 16:22:30 UTC


README

#Banckle.CRM for Laravel

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

Installation

Add the following lines to your composer.json file.

require: {
	"banckle/crm-sdk-php": "dev-master",		
	"banckle/crm-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\Crm\CrmServiceProvider',

Publish config files from the terminal.

php artisan config:publish banckle/crm-laravel

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

return array(
    'banckleAccountUri' => 'https://apps.banckle.com/api/v2',
    'banckleCRMUri' => 'https://crm.banckle.com/api/v1.0',    
    'apiKey' => '',
    'email' => '',
    'password' => ''
);

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

Usage

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

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

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

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