Download the PHP package zoho-sign/php-sdk without Composer

On this page you can find all versions of the php package zoho-sign/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-sdk

PHP SDK for ZOHO SIGN

This SDK provides wrapper functions for Zoho Sign v1 API's Document Management and Template Management.

You can setup signing workflows using this SDK similar as in Zoho Sign UI.

Links : Zoho Sign API Guide & Zoho Sign API Documentation

Environment Set Up

PHP SDK is installable through composer. Composer is a tool for dependency management in PHP. SDK expects the following from the client app.

Installation of SDK through composer

Install Composer(if not installed) Run this command to install the composer

curl -sS https://getcomposer.org/installer | php

To make the composer accessible globally, follow the instructions from the link below

To install composer on mac/ linux machine:

https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx

To install composer on windows machine:

https://getcomposer.org/doc/00-intro.md#installation-windows

Install PHP SDK

Install PHP SDK Here's how you install the SDK:

1) Navigate to the workspace of your client app 2) Run the command below:

composer require zoho-sign/php-sdk

Hence, the PHP SDK would be installed and a package named 'vendor' would be created in the workspace of your client app.

Registering a Zoho Client

Since Zoho CRM APIs are authenticated with OAuth2 standards, you should register your client app with Zoho. To register your app: 1) Visit this page https://accounts.zoho.com/developerconsole. 2) Click on Add Client ID. 3) Enter Client Name, Client Domain and Redirect URI then click Create. 4) Your Client app would have been created and displayed by now. 5) The newly registered app's Client ID and Client Secret can be found by clicking OptionsEdit. (Options is the three dot icon at the right corner).

Initializing SDK

To import the classes used in SDK, use 'require_once' to include the 'autoload.php' created by composer

require 'vendor/autoload.php'

It is required to set the OAuth2 credentials of an user as the current user as a first step.

All subsequent api calls made will be made on behalf of this user The First time user permission authentication/approval is to handled and the oauth credential storage has to be manually handled.

You can refresh & store the access_token as

Note : The OAuth credentials needs to storage(DB or file) needs to be logically handled manually

Class Heirarchy

SDK functions description

All functions for Document and Template management are available under 'ZohoSign.php' class

Document Management functions

Template Management functions

Exceptions

All functions of class 'ZohoSign' on event of bad/invalid requests to Zoho Sign throws class SignException. The Error message will be formatted like :

SIGN EXCEPTION : [error code] : error message

Examples

Below examples are assuming ZohoSign::currentUser is set.

Create a Zoho Sign request using a document with text-tags and a signer. Send the draft for signature.

Use template to create a request and send for signature


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zoho-sign/php-sdk contains the following files

Loading the files please wait ....