wabel/zoho-crm-client-wrapper

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

A Wrapper for the zcrm-php-sdk based on wabel/zoho-crm-orm v1. It's a package for manipulating of data from your Zoho CRM Account through the API v2.

1.2.x-dev 2019-07-11 09:17 UTC

This package is auto-updated.

Last update: 2024-12-17 20:21:46 UTC


README

It's a migration and extraction from zoho-crm-orm for using the API v2

What is this?

This project is a PHP wrapper for ZOHO CRM Client (zcrm-php-sdk). Use this connector to access ZohoCRM data from your PHP application.

Initialize the client?

Targetting the correct Zoho API

Out of the box, the client will point to the https://crm.zoho.com/crm/private endpoint. If your endpoint is different (some users are pointing to https://crm.zoho.eu/crm/private), you can use the third parameter of the Client constructor:

$zohoClient = new ZohoClient([
    'client_id' => 'xxxxxxxxxxxxxxxxxxxxxx',
    'client_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'redirect_uri' => 'http://xxxxxxxxx.com/bakcxxxx',
    'currentUserEmail' => 'xxxxx@test.fr',
    'applicationLogFilePath' => '/xxx/xxx/',
    'sandbox' => 'true' or 'false',
    'apiBaseUrl' => '',
    'apiVersion' => '',
    'access_type' => '',
    'accounts_url' => '',
    'persistence_handler_class' => '',
    'token_persistence_path' => ''
], 'Europe/Paris);

Zoho CRM Commands

The project also comes with a Symfony Command.

The command's constructor takes in parameter the ZohoClient

Usage:

# Command to generate access token
$ console zohocrm:client generate-access-token xxxxxxx

Setting up unit tests

Interested in contributing? You can easily set up the unit tests environment: Read how to change the client configuration - read Configuration

  • copy the phpunit.xml.dist file into phpunit.xml
  • change the stored environment variable client_secret
  • change the stored environment variable redirect_uri
  • change the stored environment variable currentUserEmail
  • change the stored environment variable applicationLogFilePath
  • change the stored environment variable persistence_handler_class
  • change the stored environment variable token_persistence_path
  • change the stored environment variable userid_test
  • change the stored environment variable timeZone
  • change the stored environment variable deal_status
  • change the stored environment variable campaign_type
  • change the stored environment variable filepath_upload