PHPackages                             mjmarianetti/zoho - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. mjmarianetti/zoho

ActiveLibrary[API Development](/categories/api)

mjmarianetti/zoho
=================

PHP wrapper for ZoHo API

11451PHP

Since May 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mjmarianetti/zoho-php)[ Packagist](https://packagist.org/packages/mjmarianetti/zoho)[ RSS](/packages/mjmarianetti-zoho/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

zoho-php
========

[](#zoho-php)

PHP wrapper for Zoho with Laravel 5.\* support

PACKAGE UNDER DEVELOPMENT, NOT ALL METHODS DOCUMENTED

Installation
============

[](#installation)

To install this package you must modify your `composer.json` file and run `composer update`

```
"require": {
    "mjmarianetti/zoho": "dev-master"
  }

```

Or you can run the `composer require mjmarianetti/zoho-php`

Laravel
=======

[](#laravel)

Open `config/app.php` and register the required service provider

```
'providers' => [
  ...
  Mjmarianetti\Zoho\ZohoServiceProvider::class

]

```

Then you should publish the config file

```
php artisan vendor:publish --provider="Mjmarianetti\Zoho\ZohoServiceProvider"

```

Configuration
=============

[](#configuration)

You can configure the options provided in you `.env` file.

```
ZOHO_SCOPE=crmapi
ZOHO_AUTHTOKEN=
ZOHO_FORMAT=json

```

The default options are:

```
ZOHO_SCOPE=crmapi
ZOHO_FORMAT=json

```

Usage
=====

[](#usage)

Initialization
--------------

[](#initialization)

Include the `ZohoClient` in your project/file

```
use Mjmarianetti\Zoho\ZohoClient;

```

If you are using Laravel you can inject it as a dependency

```
public function test(ZohoClient $client)
{

```

Or if you are using it as a stand-alone library or with another framework, you have to provide a default configuration like:

```
$config = [
  'authtoken' => 'YOUR-TOKEN',
  'scope' => 'crmapi',
  'format' => 'json', // or xml
  'baseurl' => 'https://crm.zoho.com/crm/private/'
];

$client = new ZohoClient($config);

```

Methods
-------

[](#methods)

After initialization you can call the API.

All this methods follow the same pattern, where `$resource` is the Module you want to call, and `$params` all the parameters that you want to use.

The response returned usually follows the pattern:

```
$result = $client->getRecords(RESOURCE,$params);

$result->response->nodata;
$result->response->result->FL
$result->response->result->RESOURCE->row

```

### Available $resource values

[](#available-resource-values)

API format --&gt;

### getRecords

[](#getrecords)

```
$client->getRecords($resource, $params = [])

```

### getRecordsById

[](#getrecordsbyid)

`$params` should contain either `id` or `idlist` value.

```
$client->getRecordsById($resource, $params = [])

```

Note: `idlist` should be a unique set of Ids separated by semicolon, up to 100 values

### getMyRecords

[](#getmyrecords)

```
$client->getMyRecords($resource, $params = [])

```

### getDeletedRecordIds

[](#getdeletedrecordids)

```
$client->getDeletedRecordIds($resource, $params = [])

//response->result->DeletedIDs;

```

### getSearchRecordsByPDC

[](#getsearchrecordsbypdc)

```
$client->getSearchRecordsByPDC($resource, $params = [])

```

### deleteRecords

[](#deleterecords)

```
  $client->deleteRecords($resource, $params = [])

```

### getRelatedRecords

[](#getrelatedrecords)

```
$client->getRelatedRecords($resource, $params = [])

```

### getFields

[](#getfields)

```
$client->getFields($resource, $params = [])

```

### getUsers

[](#getusers)

```
$client->getUsers($resource, $params = [])

```

### delink

[](#delink)

```
$client->delink($resource, $params = [])

```

### downloadFile

[](#downloadfile)

```
$client->downloadFile($resource, $params = [])

```

### deleteFile

[](#deletefile)

```
$client->deleteFile($resource, $params = [])

```

### downloadPhoto

[](#downloadphoto)

```
$client->downloadPhoto($resource, $params = [])

```

### deletePhoto

[](#deletephoto)

```
$client->deletePhoto($resource, $params = [])

```

### getModules

[](#getmodules)

```
$client->getModules($resource, $params = [])

```

### searchRecords

[](#searchrecords)

```
$client->searchRecords($resource, $params = [])

```

Iterator
--------

[](#iterator)

If you would like to use a iterator to loop through the data received, you can use it like this:

```
use Mjmarianetti\Zoho\Helpers\ZohoResponseIterator;
use Mjmarianetti\Zoho\ZohoClient;

...
$response = $zc->getRecords('Accounts', []);

$it = new ZohoResponseIterator((array) $response->response->result->Accounts->row);
foreach ($it as $key => $value) {
    //$value->val and $value->content;
}

```

For now, you should check that `$response->response->result->Resource->row` is not null

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c412d917032cd6ba9d5caa529c96558257b68f55d91293d7a35f4ce683d0f12?d=identicon)[mjmarianetti](/maintainers/mjmarianetti)

---

Top Contributors

[![mjmarianetti](https://avatars.githubusercontent.com/u/6825791?v=4)](https://github.com/mjmarianetti "mjmarianetti (16 commits)")[![cornernote](https://avatars.githubusercontent.com/u/51875?v=4)](https://github.com/cornernote "cornernote (1 commits)")

### Embed Badge

![Health badge](/badges/mjmarianetti-zoho/health.svg)

```
[![Health](https://phpackages.com/badges/mjmarianetti-zoho/health.svg)](https://phpackages.com/packages/mjmarianetti-zoho)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
