Provides a clean readable PHP API to the Zoho Rest API

Installs: 3 654

Dependents: 0

Stars: 5

Watchers: 5

Forks: 4

Open Issues: 4

0.9.2 2014-02-28 17:55 UTC


Scrutinizer Quality Score Build Status

Provides a clean readable PHP API to the Zoho Rest API.


use Christiaan\ZohoCRMClient\ZohoCRMClient;

$client = new ZohoCRMClient('Leads', 'yourAuthKey');

$records = $client->getRecords()
    ->selectColumns('First Name', 'Last Name', 'Email')
    ->sortBy('Last Name')->sortAsc()
    ->since(date_create('last week'))

echo 'Content: ' . print_r($records, true) . PHP_EOL;

Using custom transport settings to enable logging

$buzzTransport = new BuzzTransport(
    new \Buzz\Browser(new \Buzz\Client\Curl()),

$transport = new XmlDataTransportDecorator(
    new AuthenticationTokenTransportDecorator(

$client = new ZohoCRMClient('Leads', $transport);

Implemented Calls

At the moment only the following calls are supported

  • getRecords
  • getRecordById
  • insertRecords
  • updateRecords
  • getFields

It is rather easy to add new calls, look at one of the classes in the Request dir for examples. After the Request class is made it might be necessary to alter the parsing of the response XML in the XmlDataTransportDecorator class.