cristianpontes/zoho-crm-client-php

Provides a clean readable PHP API to the Zoho Rest API

1.7 2018-05-31 19:20 UTC

This package is not auto-updated.

Last update: 2024-03-16 16:42:10 UTC


README

This project is no longer maintained and has been deprecated in favor of the official Zoho PHP SDK.
For more information, please visit Zoho's official documentation
No Maintenance Intended

Build Status Latest Stable Version License
Provides a clean readable PHP API to the Zoho Rest API.
This project was initially cloned from this repository and improved with:

  • New methods
  • More features
  • Friendly documentation

Prerequisites

  • PHP 5.4 or above
  • CURL

Easy Installation

To install with Composer, simply require the latest version of this package.

composer require cristianpontes/zoho-crm-client-php

Make sure that the autoload file from Composer is loaded.

// somewhere early in your project's loading, require the Composer autoloader
// see: http://getcomposer.org/doc/00-intro.md
require 'vendor/autoload.php';

Usage Sample

use CristianPontes\ZohoCRMClient\ZohoCRMClient;

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

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

// Just for debug
echo "<pre>";
print_r($records);
echo "</pre>";

Available Methods

  • getRecords
  • insertRecords
  • updateRecords
  • deleteRecords
  • getDeletedRecordIds
  • getRelatedRecords
  • getRecordById
  • searchRecords
  • getSearchRecordsByPDC
  • uploadFile
  • downloadFile
  • deleteFile
  • getFields
  • convertLead
  • updateRelatedRecords

Documentation

All the methods previously mentioned are well explained in the library documentation page.
Also, the code is well documented too, so you'll be able to look at the methods, functions and check how they work.