td-wp-plugin / td-zoho-crm-sdk-wrapper
Helps with initializing the Zoho CRM PHP SDK in WordPress via WP CLI.
Installs: 256
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
pkg:composer/td-wp-plugin/td-zoho-crm-sdk-wrapper
Requires
- zohocrm/php-sdk: ^2.0.7
This package is auto-updated.
Last update: 2025-10-23 06:03:35 UTC
README
A simple WordPress plugin integrating the Zoho CRM PHP SDK with WordPress.
Capabilities
This plugin integrates with WP-CLI in order to easily setup tokens necessary for authenticating to the Zoho API by means of the Zoho CRM PHP SDK.
It will also handle initialization of the Zoho CRM SDK upon the WordPress init hook.
Prerequisites
This plugin is developed with a WordPress Bedrock installation into mind. The Zoho CRM tokens will be stored in the /config directory. Configuration is done by means of environment variables.
Configuration
The following environment variables are required:
ZOHO_CLIENT_IDZOHO_CLIENT_SECRETZOHO_CURRENT_USER_EMAILZOHO_REDIRECT_URI
The following environment variables are optional:
ZOHO_ACCOUNTS_URLdefaults tohttps://accounts.zoho.comZOHO_API_BASE_URLdefaults towww.zohoapis.comZOHO_SANDBOXdefaults tofalseZOHO_CONFIG_PATHdefaults to Bedrock's/configdirectory
Initialization: the Self-Client Method
For more information on the Zoho CRM PHP SDK initialization please check out its documentation at https://www.zoho.com/crm/developer/docs/php-sdk/initialize.html.
In order to be able to use the Zoho CRM SDK in WordPress you need to register a set of OAuth tokens by means of the
built-in WP-CLI command. The %grant-token% should be replaced by the temporary token you receive from the Zoho
Developer Console.
wp zoho grant-token %grant-token%