ahmedd-ibrahim / zohobooks
PHP SDK for ZohoBooks API
1.2
2022-03-24 11:50 UTC
Requires
- php: ^5.6 | ^7.0 | >=8.0.0
- guzzlehttp/guzzle: ^6.0 | >=7.2.0
Requires (Dev)
- phpunit/phpunit: ^5.7 | >=7.3
- squizlabs/php_codesniffer: ^2.7
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
- Implement all API v3 methods: https://www.zoho.com/books/api/v3/
- Cover code with unit tests
- Setup CI (Travis)
1.x version - ORM-like layer implementation
- Implement ORM layer for API
- Integrations with popular frameworks