PHPackages                             deadmantfa/yii2-zoho-api-client - 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. deadmantfa/yii2-zoho-api-client

ActiveYii2-extension

deadmantfa/yii2-zoho-api-client
===============================

A Client for Zoho API's

1.0.9(5y ago)12952MITPHP

Since Sep 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/deadmantfa/yii2-zoho-api-client)[ Packagist](https://packagist.org/packages/deadmantfa/yii2-zoho-api-client)[ GitHub Sponsors](https://github.com/deadmantfa)[ Fund](https://ko-fi.com/deadmantfa)[ RSS](/packages/deadmantfa-yii2-zoho-api-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (11)Used By (0)

Yii2 Zoho REST API Client
=========================

[](#yii2-zoho-rest-api-client)

A Client for Zoho RESTful API's

[![Powered By Yii2](https://camo.githubusercontent.com/88d5b90e3e9e089a721b40b96a0a1a2be333c1f7aa270d55c59231328196feb0/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d506f77657265642543322541304279266d6573736167653d5969693226636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://yiiframework.com/)[![Type](https://camo.githubusercontent.com/6ec741ccd64791d1afa19615cb4db667d8ded2868e7d310dc8430f7b34c77f88/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d54797065266d6573736167653d59696932254332254130457874656e73696f6e26636f6c6f723d79656c6c6f77267374796c653d666f722d7468652d6261646765)](https://yiiframework.com/)

[![Packagist Version](https://camo.githubusercontent.com/7612ae857a568a01668a9780e97a75430a06e0ee792cc4f4b5d6390d0a3b5526/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/7612ae857a568a01668a9780e97a75430a06e0ee792cc4f4b5d6390d0a3b5526/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![GitHub](https://camo.githubusercontent.com/81d7c4fcabe5c0e6e606e41823b06eee742ba097b81b81ed508377d08335ffe0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/81d7c4fcabe5c0e6e606e41823b06eee742ba097b81b81ed508377d08335ffe0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![Packagist Stars](https://camo.githubusercontent.com/792af4b0238095a715c048a8256935f7994417d87cec6bf0e5bdb06f95f2b572/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/792af4b0238095a715c048a8256935f7994417d87cec6bf0e5bdb06f95f2b572/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![GitHub top language](https://camo.githubusercontent.com/e2bea109b0800a5ad7b9b2832b4499afc5f713409fddb0401ab2742a2fb42a17/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/e2bea109b0800a5ad7b9b2832b4499afc5f713409fddb0401ab2742a2fb42a17/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![Packagist Downloads](https://camo.githubusercontent.com/06d19b1067a20e5e65984d52d53315b57ee5e55cd808f333a1d94b5b0e1af3c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/06d19b1067a20e5e65984d52d53315b57ee5e55cd808f333a1d94b5b0e1af3c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![GitHub stars](https://camo.githubusercontent.com/c47c50e4f53c2547ad27bc05333e5b5c917ccf0ea33a84e1e95f030e2b4617bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/c47c50e4f53c2547ad27bc05333e5b5c917ccf0ea33a84e1e95f030e2b4617bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![GitHub last commit](https://camo.githubusercontent.com/0c10f293c8dfdcc25668603eb6e0481affe891e60bdc40198ebc5a99d7c3a6a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/0c10f293c8dfdcc25668603eb6e0481affe891e60bdc40198ebc5a99d7c3a6a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646561646d616e7466612f796969322d7a6f686f2d6170692d636c69656e743f7374796c653d666f722d7468652d6261646765)[![Maintenance](https://camo.githubusercontent.com/8673e90d546a2c5ead6be528f7f7978f877d3f64205f10b19ad02e2d0d6726d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642533462d7965732d677265656e2e7376673f7374796c653d666f722d7468652d6261646765)](https://GitHub.com/deadmantfa/yii2-zoho-api-client/graphs/commit-activity)[![saythanks](https://camo.githubusercontent.com/0f043ccb4c712477f46ff0bd03afe5aef8e4a2d13a33906269935d62226bf48f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7361792d7468616e6b732d6666363962342e7376673f7374796c653d666f722d7468652d6261646765)](https://saythanks.io/to/wenceslausdsilva%40gmail.com)

[![forthebadge](https://camo.githubusercontent.com/fc9e130634560ae4e887e1d03255ca9973e2a2eac828b0d2780976120293239e/68747470733a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f796f752d6469646e742d61736b2d666f722d746869732e737667)](https://camo.githubusercontent.com/fc9e130634560ae4e887e1d03255ca9973e2a2eac828b0d2780976120293239e/68747470733a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f796f752d6469646e742d61736b2d666f722d746869732e737667)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist deadmantfa/yii2-zoho-api-client "^v1.0.x"

```

or add

```
"deadmantfa/yii2-zoho-api-client": "^v1.0.x"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

Once the extension is installed, add it to your configuration :

Please note the redirect url for OAUTH2 to work properly, please add it to your client on Zoho before continuing further. Replace `` with an actual domain or localhost

`/zoho/default/auth?authclient=zoho`

In your `params.php` or `params-local.php` define the following

```
    'zoho-api-client-id' => '',
    'zoho-api-client-secret' => '',
    'zoho-organization-id' => '',
    'zoho-redirect-uri' => '/zoho/default/auth?authclient=zoho'
```

Add the following in one of these file

`app/common/config/main.php` or `app/backend/config/main.php`

```
    'modules' => [
        'zoho' => [
            'class' => \deadmantfa\yii2\zoho\Module::class,
        ],
    ],
    'components' => [
        'authClientCollection' => [
            'class' => \yii\authclient\Collection::class,
            'clients' => [
                'zoho' => [
                    'class' => \deadmantfa\yii2\zoho\auth\ZohoAuthClient::class,
                    'clientId' => $params['zoho-api-client-id'],
                    'clientSecret' => $params['zoho-api-client-secret'],
                    'returnUrl' => $params['zoho-redirect-uri'],
                ],
            ],
        ],
        'zoho'=> [
            'class' => \deadmantfa\yii2\zoho\components\ZohoApiClient::class,
            'apiBaseUrl'=>'https://inventory.zoho.com/api/v1/',
            'organizationId'=>$params['zoho-organization-id']
        ]
    ];
```

For Migration add the following to

`app/console/config/main.php`

```
use yii\console\controllers\MigrateController;

    'controllerMap' => [
        'migrate' => [
            'class' => MigrateController::class,
            'migrationPath' => [
                '@app/migrations',
                '@yii/rbac/migrations', // Just in case you forgot to run it on console (see next note)
            ],
            'migrationNamespaces' => [
                'deadmantfa\yii2\zoho\migrations',
            ],
        ],
    ],
```

Then run the following command

```
./yii migrate
```

Usage
-----

[](#usage)

To use the zoho api we need to first authorize and generate access\_token and refresh\_token

(http://&lt;YOUR\_DOMAIN\_NAME&gt;/zoho)

Follow the screenshots below

[![Step 1](screenshots/1.png?raw=true)](screenshots/1.png?raw=true)

[![Step 2](screenshots/2.png?raw=true)](screenshots/2.png?raw=true)

[![Step 3](screenshots/3.png?raw=true)](screenshots/3.png?raw=true)

After generating the access token and refresh token you can now call any api which is provided by Zoho

```
Yii::$app->zoho->get('items', []);
Yii::$app->zoho->post('items', []);
Yii::$app->zoho->put('items', []);
Yii::$app->zoho->delete('items', []);
```

[Zoho Rest API Documentation](https://www.zoho.com/developer/rest-api.html)

Dependencies
------------

[](#dependencies)

- [Yii2 Framework](https://www.yiiframework.com/)
- [Yii2 Auth Client](https://github.com/yiisoft/yii2-authclient)
- [Yii2 Http CLient](https://github.com/yiisoft/yii2-httpclient)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~25 days

Total

10

Last Release

1977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/273b16723bec678f1ab9863eb3de2b31f2aa2390b5d872e547fda0dcfc427e61?d=identicon)[deadmantfa](/maintainers/deadmantfa)

---

Top Contributors

[![deadmantfa](https://avatars.githubusercontent.com/u/1812611?v=4)](https://github.com/deadmantfa "deadmantfa (20 commits)")

---

Tags

yii2extensionZohozoho-api

### Embed Badge

![Health badge](/badges/deadmantfa-yii2-zoho-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/deadmantfa-yii2-zoho-api-client/health.svg)](https://phpackages.com/packages/deadmantfa-yii2-zoho-api-client)
```

###  Alternatives

[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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