Search by

ahmedd-ibrahim / zohobooks

Ahmedd-Ibrahim

PHP SDK for ZohoBooks API

Package info

github.com/Ahmedd-Ibrahim/Zoho-Books

pkg:composer/ahmedd-ibrahim/zohobooks

Statistics

Installs: 2 190

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.2 2022-03-24 11:50 UTC

This package is auto-updated.

Last update: 2026-09-22 00:04:27 UTC


README

ZohoBooks PHP library

This package is an upgrade of official package

Most important feature is switch from old auth to Oauth

Install

composer require ahmedd-ibrahim/zohobooks

Added feature to automatically refresh access token

Added feature to support multiple Zoho regions

Usage

use Ahmedd\ZohoBooks\Api;
use Ahmedd\ZohoBooks\TokenManager;

$tokenManager = new TokenManager(
    env('ZOHO_CLIENT_ID'),
    env('ZOHO_CLIENT_SECRET'),
    env('ZOHO_REFRESH_TOKEN'),
    null, // default path: storage/app/zoho_token.json
    'eu'  // set your region: us, eu, in, au, jp, ca, cn, sa - default is 'us'
);

$api = new Api($tokenManager);
$api->setOrganizationId(env('ZOHO_ORG_ID'));

$api->contacts()->getList(['contact_name_contains'=>'John']);

TODO

0.x versions - full API with array processing

1.x version - ORM-like layer implementation

  • Implement ORM layer for API
  • Integrations with popular frameworks