This is an API wrapper library for Zoho CRM, written in PHP.
It aims to cover the whole API (every module and method), while providing a great abstraction and very easy-to-use methods.
- PHP :
5.5+
- PHP cURL extension enabled
The recommended way to install this package is through Composer.
Edit your composer.json
file:
"require": {
"tristanjahier/zoho-crm-php": "^0.2"
}
or simply run this command:
composer require tristanjahier/zoho-crm-php
This package is currently at an early development stage. Full documentation will come when it is stable enough.
// Create a Zoho connection
$zoho = new Zoho\Crm\Connection('MY_ZOHO_AUTH_TOKEN');
// Use its supported modules to make easy queries...
$one_lead = $zoho->leads->find('1212717324723478324');
$many_leads = $zoho->leads->findMany(['8734873457834574028', '3274736297894375750']);
$all_potentials = $zoho->potentials->all()->get();
$admins = $zoho->users->admins()->get();
// ...or build them manually
$response = $zoho->newQuery('Module', 'method', ['a_parameter' => 'blablebloblu'])->execute();
$records = $response->toEntityCollection();