Download the PHP package christiaan/zohocrmclient without Composer

On this page you can find all versions of the php package christiaan/zohocrmclient. 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 zohocrmclient

This project is archived

Since Zoho now has an official package this project is archived/deprecated. See https://packagist.org/packages/zohocrm/php-sdk-archive

ZohoCRMClient

Provides a clean readable PHP API to the Zoho Rest API.

Usage

Enabling logging

You can enable logging by adding the following line after instantiating the client:

The logger should implement the PSR LoggerInterface. If the transport being used implements LoggerAwareInterface, this call will chaing to set the logger for the transport as well. The build in transport supports this.

Choosing a different Zoho realm

ZohoCRMClient will by default connect to the API at crm.zoho.com. If you wish to connect to a different one, you can supply the TLD as the third parameter to the constructor. For example, customer on the EU realm should instantiate the client like this:

Using custom transport

If we wish, you can supply a custom transport class to ZohoCRMClient, as shown here:

Implemented Calls

At the moment only the following calls are supported

It is rather easy to add new calls, look at one of the classes in the Request dir for examples. After the Request class is made it might be necessary to alter the parsing of the response XML in the XmlDataTransportDecorator class.

More examples

insertRecords()

Optionally, you can add onDuplicateUpdate() or onDuplicateError() to the chain, before request(), to instruct Zoho to either update or fail on duplicated records. Duplicate checking depends on the module being targeted, see the list in the Zoho documentation.

The $records array will contain an entry for each record you have tried to create, which on success will contain the ID of the new (or updated) record.

updateRecords()

Specifying the ID per record is necessary when updating multiple records. Alternatively, you may call id() to set the ID if you are only updating a single record. Setting the ID per record works in either case.

searchResults()

See the Zoho documentation for the full explanation of how to write the criteria.


All versions of zohocrmclient with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
kriswallsmith/buzz Version ~0.10
psr/log Version ~1.0.0
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 christiaan/zohocrmclient contains the following files

Loading the files please wait ....