2017 © Pedro Peláez
 

library capsulecrm

Laravel Package for capsule CRM integration

image

laravel_crm/capsulecrm

Laravel Package for capsule CRM integration

  • Wednesday, April 11, 2018
  • by ydaood
  • Repository
  • 1 Watchers
  • 2 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

laravelCapsuleCRM

Agenda

Installation

  • Install from composer bash composer require laravel_crm/capsulecrm
  • Add Service Provider in config/app.php add service provider class php 'providers' => [ CapsuleCRM\CapsuleServiceProvider::class, ];
  • And add alias in config/app.php in aliases array add php 'aliases' => [ 'CapsuleCRM'=>CapsuleCRM\Facades\CapsuleCRM::class, ];
  • Publish config file by bash php artisan vendor:publish --tag=capsuleCRM --force

Configuration

  • Add in .env file three keys of capsulecrm : * CAPSULECRM_TOKEN get it from capsule My Preferences -> API Authentication Tokens->Personal Access Tokens * CAPSULECRM_APP_NAME * CAPSULECRM_BASE_URI default is https://api.capsulecrm.com/api/v2/

Usage

Common usage :, (*2)

CapsuleCRM::{entity name}()
````
Example :
```php 
CapsuleCRM::party()
  • Party: Parties represent the People and Organisations on your Capsule account. His Object is : php CapsuleCRM::party(); for crud operations :
  1. Create new account :, (*3)

    $data = [
    'name' => 'youssef daood',
    'email' => 'ydaood@arkdev.net',
    'tags' => ['register','subscribe']
    ];
    CapsuleCRM::party()->create($data);
    
  2. Resgister account:, (*4)

    $data = [
    'name' => 'youssef daood',
    'email' => 'ydaood@arkdev.net'
    ];
    $tag = 'subscribe';
    CapsuleCRM::party()->register($data, $tag);
    
    1. Update account:
    $id = 1; // id of capsule
    $data = [
    'name' => 'youssef'
    ];
    CapsuleCRM::party()->update($id, $data);
    
    1. validateUniqueEmail:
    $email = 'ydaood@arkdev.net';
    CapsuleCRM::party()->validateUniqueEmail($email);
    
    1. Search
    $filter = 'youssef';
    CapsuleCRM::party()->search($filter);
    
    1. Fetch one party
    $party_id=123456;
    $party = CapsuleCRM::party()->fetch($party_id);
    
    1. Get all person objects for a party
    $party_id=123456;
    $people = CapsuleCRM::party()->people($party_id);
    

The Versions

11/04 2018

1.0.1

1.0.1.0

Laravel Package for capsule CRM integration

  Sources   Download

MIT

The Requires

 

by Youssef Daood
by Mostafa Mohammed

laravel crm capsule capsulecrm laravelcrm capsule crm laravel crm

04/02 2018

dev-master

9999999-dev

Laravel Package for capsule CRM integration

  Sources   Download

MIT

The Requires

 

by Youssef Daood
by Mostafa Mohammed

laravel crm capsule capsulecrm laravelcrm capsule crm laravel crm

31/01 2018

1.0.0

1.0.0.0

Laravel Package for capsule CRM integration

  Sources   Download

The Requires

 

by Youssef Daood
by Mostafa Mohammed