Download the PHP package zcc/cc-php-sdk without Composer
On this page you can find all versions of the php package zcc/cc-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zcc/cc-php-sdk
More information about zcc/cc-php-sdk
Files in zcc/cc-php-sdk
Package cc-php-sdk
Short Description PHP SDK for CommandCenter
License Apache-2.0
Homepage https://github.com/zoho/cc-php-sdk
Informations about the package cc-php-sdk
License
Copyright (c) 2021, ZOHO CORPORATION PRIVATE LIMITED
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
ZOHOCRM PATHFINDER PHP SDK 1.0
Table Of Contents
- Overview
- Environmental Setup
- Including the SDK in your project
- Configuration
- Initialization
- Responses And Exceptions
- Sample Code
Overview
Zoho CRM PHP SDK offers a way to create client PHP applications that can be integrated with Zoho CRM PathFinder.
Environmental Setup
PHP SDK is installable through Composer. Composer is a tool for dependency management in PHP. SDK expects the following from the client app.
-
Client app must have PHP(version 7 and above) with curl extension enabled.
- PHP SDK must be installed into client app though Composer.
Including the SDK in your project
You can include the SDK to your project using:
-
Install Composer (if not installed).
-
Run this command to install the composer.
-
To install composer on mac/linux machine:
- To install composer on windows machine:
-
-
Install PHP SDK.
-
Navigate to the workspace of your client app.
-
Run the command below:
- The PHP SDK will be installed and a package named vendor will be created in the workspace of your client app.
-
-
Using the SDK.
- Add the below line in PHP files of your client app, where you would like to make use of PHP SDK.
Through this line, you can access all the functionalities of the PHP SDK. The namespaces of the class to be used must be included within the "use" statement.
Configuration
Before you get started with creating your PHP application, you need to create a SDK configuration in ZOHOCRM PathFinder.
-
Configure the API environment which decides the domain and the URL to make API calls.
- Create an instance of SDKConfig containing SDK configurations.
Initializing the Application
Initialize the SDK using the following code.
- You can now access the functionalities of the SDK. Refer to the sample codes to make various API calls through the SDK.
Responses and Exceptions
All SDK method calls return an instance of the APIResponse class.
Use the getObject() method in the returned APIResponse object to obtain the response handler interface (GET).
All other exceptions such as SDK anomalies and other unexpected behaviours are thrown under the SDKException class.
SDK Sample code
All versions of cc-php-sdk with dependencies
ext-json Version *
ext-curl Version *