Download the PHP package chemistrymarketing/zoho-subscriptions-sdk without Composer

On this page you can find all versions of the php package chemistrymarketing/zoho-subscriptions-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 zoho-subscriptions-sdk

Zoho Subscriptions PHP SDK

Partial PHP SDK for Zoho Subscriptions

Usage

To instantiate a client, use the static build method with your organisation ID and Auth token from Zoho.

Customers

If you're creating a customer, most of the customer data is not technically required (except the email address), so we have setter methods to add it when it is provided:

You can add custom fields to customers like so:

Then when you're ready to save the customer, you send it to the method in the client, which returns the customer ID:

Customer Addresses

adding an address to a customer requires you to create Address objects:

then you can add it to the billing address or the shipping address on the customer before sending the request:

Hosted Page: Subscriptions

Creating a subscription is, at it's simplest, a case of creating a Subscription entity and sending it to the client:

This creates a hosted page, and returns the URL which your user needs to be redirected to in order to complete their subscription.

You can optionally add a redirect url to the subscription before you send the request to let Zoho know where to send the user after the order has been completed:

Regions

Zoho Subscriptions are available in different regions, which have different URL's to access the API.

To change to the EU region, you can use the setApiRegionEU() method on the Client class, and change it back with the setApiRegionCOM()

Creating new API methods

I have currently only created API classes for the functionality that is needed for the current project I am working on. If you need anything else, you can easily do so by implementing the ZohoSubscription\Contracts\Requestable interface and optionally using the ZohoSubscription\Partials\HasRequestables trait, for example this is a very basic Payment API implementation:

which you could build up and pass to the client's send method.


All versions of zoho-subscriptions-sdk with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
guzzlehttp/guzzle Version ^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 chemistrymarketing/zoho-subscriptions-sdk contains the following files

Loading the files please wait ....