Download the PHP package zotapay/php-sdk without Composer

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

codecov PHP Quicktest SDK CI Matrix Build PHP PSR Enforcer

php-sdk

Official Zota PHP SDK

This is the official page of the Zota PHP SDK. It is intended to be used by developers who run modern PHP applications and would like to integrate our next-generation payments platform.

Introduction

PHP SDK provides all the neccessary methods for integrating the Zota Merchant API. This SDK is used by clients, as well as all the related eCommerce plugins for mainstream PHP applications.

Requirements

Usage

Main configuration

After all the files are loaded configuration is needed. This can be done with the static methods provided in Zota class. Configuration includes:

API requests

After everything is setup all requests to the API are made with the corresponding classes:

Every request class consist of public request method with data object parameter. There are also private methods for preparation of the data and the signature.

Making the request

First the data object has to be created and all the needed data setup with the setters (ex. DepositOrder).

After that the request class (ex. Deposit) is created and the request method is called with the data object as parameter.

Retrieving the response

Every request method returns response object with available getters. In every response object are included getters providing the code, the message and the data as they are received from the API. Also in every response object are included getters for the body of the response, the HTTP code and the JSON. All other getters are request-specific and are available for easier usage of the response further.

Callback and Merchant redirect handlers

Classes for callbacks and redirects handling are available with the corresponding getters:

Additional resources

In addition DefaultLogger class is available for logging. The DefaultLogger includes eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).

Examples

Examples are available in examples folder.

Loading and configuration:

Requests:

Order Handlers:

Logging:

Resources

The Zota API guide can be found on the official API Documentation pages for deposit and payout operations.

Support

This SDK is supported and maintaned by Zota. For sign-up and sales inquiries, please contact [email protected]. For Support, please use [email protected] and include customer identifiable information, along with a description of the issue.


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-curl Version *
ext-json Version *
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 zotapay/php-sdk contains the following files

Loading the files please wait ....