Namespaces - PHP SDK

Namespaces - PHP SDK

Starting from PHP SDK version 2 , the namespaces convention (PSR-4) is followed. Hence for a user to access a particular class, the namespace for the class is to be used. The namespaces are:


Class
Namespace
ZCRMAttachment
use zcrmsdk\crm\crud\ZCRMAttachment;
ZCRMCustomView
use zcrmsdk\crm\crud\ZCRMCustomView;
ZCRMCustomViewCategory
use zcrmsdk\crm\crud\ZCRMCustomViewCategory;
ZCRMCustomViewCriteria
use zcrmsdk\crm\crud\ZCRMCustomViewCriteria;
ZCRMEventParticipant
use zcrmsdk\crm\crud\ZCRMEventParticipant;
ZCRMField
use zcrmsdk\crm\crud\ZCRMField;
ZCRMInventoryLineItem
use zcrmsdk\crm\crud\ZCRMInventoryLineItem;
ZCRMJunctionRecord
use zcrmsdk\crm\crud\ZCRMJunctionRecord;
ZCRMLayout
use zcrmsdk\crm\crud\ZCRMLayout;
ZCRMLeadConvertMapping
use zcrmsdk\crm\crud\ZCRMLeadConvertMapping;
ZCRMLeadConvertMappingField
use zcrmsdk\crm\crud\ZCRMLeadConvertMappingField;
ZCRMLookupField
use zcrmsdk\crm\crud\ZCRMLookupField;
ZCRMModule
use zcrmsdk\crm\crud\ZCRMModule;
ZCRMModuleRelatedList
use zcrmsdk\crm\crud\ZCRMModuleRelatedList;
ZCRMModuleRelation
use zcrmsdk\crm\crud\ZCRMModuleRelation;
ZCRMNote
use zcrmsdk\crm\crud\ZCRMNote;
ZCRMOrgTax
use zcrmsdk\crm\crud\ZCRMOrgTax;
ZCRMPermission
use zcrmsdk\crm\crud\ZCRMPermission;
ZCRMPickListValue
use zcrmsdk\crm\crud\ZCRMPickListValue;
ZCRMPriceBookPricing
use zcrmsdk\crm\crud\ZCRMPriceBookPricing;
ZCRMProfileCategory
use zcrmsdk\crm\crud\ZCRMProfileCategory;
ZCRMTrashRecord
use zcrmsdk\crm\crud\ZCRMTrashRecord;
ZCRMTax
use zcrmsdk\crm\crud\ZCRMTax;
ZCRMTag
use zcrmsdk\crm\crud\ZCRMTag;
ZCRMSection
use zcrmsdk\crm\crud\ZCRMSection;
ZCRMRelatedListProperties
use zcrmsdk\crm\crud\ZCRMRelatedListProperties;
ZCRMRecord
use zcrmsdk\crm\crud\ZCRMRecord;
ZCRMProfileSection
use zcrmsdk\crm\crud\ZCRMProfileSection;
ZCRMException
use zcrmsdk\crm\exception\ZCRMException;
ZCRMOrganization
use zcrmsdk\crm\setup\org\ZCRMOrganization;
ZCRMRestClient
use zcrmsdk\crm\setup\restclient\ZCRMRestClient;
ZCRMProfile
use zcrmsdk\crm\setup\users\ZCRMProfile;
ZCRMRole
use zcrmsdk\crm\setup\users\ZCRMRole;
ZCRMUser
use zcrmsdk\crm\setup\users\ZCRMUser;
ZCRMUserCustomizeInfo
use zcrmsdk\crm\setup\users\ZCRMUserCustomizeInfo;
ZCRMUserTheme
use zcrmsdk\crm\setup\users\ZCRMUserTheme;
ZohoOAuth
use zcrmsdk\oauth\ZohoOAuth;
ZohoOAuthClient
use zcrmsdk\oauth\ZohoOAuthClient;
    • Related Articles

    • Release Notes - PHP SDK

      ZOHO CRM/PHP SDK 2.0.1 Install command composer require zohocrm/php-sdk:2.0.1 Notes Enhancement Tag names can contain spaces in between them, while associating with records. Tag names can be retrieved as "ZCRMTag" objects in records function. ZOHO ...
    • Installation - PHP SDK

      Install Composer(if not installed) Run this command to install the composer curl -sS  https://getcomposer.org/installer  | php To install composer on mac/ linux machine: https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx To install ...
    • PHP SDK - An Overview

      PHP SDK offers a way to create client PHP applications that can be integrated with Zoho CRM. This SDK makes the access and use of necessary CRM APIs with ease. In other words, it serves as a wrapper for the REST APIs, making it easier to use the ...
    • Token Persistence - PHP SDK

      Token persistence refers to storing and utilizing the authentication tokens that are provided by Zoho. There are three ways provided by the SDK in which persistence can be applied. They are file persistence, DB persistence (default) and Custom ...
    • Configuration - PHP SDK

      To access the CRM services through SDK, the client application must be first authenticated. This can be done by passing a key-value configuration pair to the initialization process. The $configuration array must be created. It will contain the ...