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
- PHP 5.3 or above
- CURL
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';
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>";
- getRecords
- insertRecords
- updateRecords
- deleteRecords
- getDeletedRecordIds
- getRelatedRecords
- getRecordById
- searchRecords
- getSearchRecordsByPDC
- uploadFile
- downloadFile
- deleteFile
- getFields
- convertLead
- updateRelatedRecords
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.