PHPackages                             zotapay/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zotapay/php-sdk

ActiveLibrary

zotapay/php-sdk
===============

Zota PHP SDK

v1.2.0(1y ago)21.4k3APACHE-2.0PHPPHP &gt;=7.2CI passing

Since Aug 25Pushed 1y ago2 watchersCompare

[ Source](https://github.com/zotapay/php-sdk)[ Packagist](https://packagist.org/packages/zotapay/php-sdk)[ RSS](/packages/zotapay-php-sdk/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

[![codecov](https://camo.githubusercontent.com/847641b88442cc0992ace799ea12eae9dfbdbbde6c5d1b83bbedf59400c986d6/68747470733a2f2f636f6465636f762e696f2f67682f7a6f74612f7068702d73646b2f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d364d3642504230485950)](https://codecov.io/gh/zota/php-sdk)[![PHP Quicktest](https://github.com/zota/php-sdk/actions/workflows/php-quicktest.yml/badge.svg)](https://github.com/zota/php-sdk/actions/workflows/php-quicktest.yml)[![SDK CI Matrix Build](https://github.com/zota/php-sdk/actions/workflows/ci-matrix.yml/badge.svg)](https://github.com/zota/php-sdk/actions/workflows/ci-matrix.yml)[![PHP PSR Enforcer](https://github.com/zota/php-sdk/actions/workflows/phpcs.yml/badge.svg)](https://github.com/zota/php-sdk/actions/workflows/phpcs.yml)

[![php-sdk](https://private-user-images.githubusercontent.com/174284/356039597-10eb7dd9-778c-4419-8322-8180d67373f7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzgzNzUyMTUsIm5iZiI6M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AxNTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MDZkODU4ZDcyMWYzNTY3YWY3MTQ5OWYyMTc0ZDQxNzk3MjQ0N2Y4YWQyNTNlZGZiOTI5NjEwOTg1YzAzMTE5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.BszU6zf-Rb2pbYIJ26jLDToco_JzhoEM196uteVVWc8)

Official Zota PHP SDK
=====================

[](#official-zota-php-sdk)

This is the official page of the [Zota](https://www.zota.com) 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
------------

[](#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
------------

[](#requirements)

- A functioning Zota Sandbox or Production account and related credentials
- PHP version 7.2.0 or greater
- Client URL Library (cURL) version 7.34.0 or greater
- JSON extension enabled

Usage
-----

[](#usage)

### Main configuration

[](#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:

- Credentials
- API url - test or production environment
- Endpoint
- Logging threshold and location

### API requests

[](#api-requests)

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

- Deposit
- DepositCC (deposit with Credit card data)
- Payout
- OrderStatus
- OrdersReport

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

[](#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

[](#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

[](#callback-and-merchant-redirect-handlers)

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

- `ApiCallback`
- `MerchantRedirect`

### Additional resources

[](#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)

Examples are available in `examples` folder.

Loading and configuration:

- `autoload.php` loads all the needed files as bootstrap.
- `config.php` includes main configuration.

- If needed differnet endpoint can be set for different requests.

Requests:

- `deposit.php` - Deposit request
- `deposit-cc.php` - Deposit request with Credit card details
- `payout.php` - Payout request
- `order-status.php` - Order status request
- `orders-report.php` - Orders report request

Order Handlers:

- `callback.php` - API Callback
- `merchant-redirect.php` - API Merchant redirect

Logging:

- `logger.php` - DefaultLogger usage

Resources
---------

[](#resources)

The Zota API guide can be found on the official API Documentation pages for [deposit](https://doc.zota.com/deposit/1.0/) and [payout](https://doc.zota.com/payout/1.0/) operations.

Support
-------

[](#support)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~490 days

Total

4

Last Release

621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91572a25c754aa7b8b056169ef08953dfafad3af64c7ba353e5bc144560e4297?d=identicon)[zota](/maintainers/zota)

---

Top Contributors

[![atanasantonov](https://avatars.githubusercontent.com/u/29710963?v=4)](https://github.com/atanasantonov "atanasantonov (36 commits)")[![alexbhr](https://avatars.githubusercontent.com/u/174284?v=4)](https://github.com/alexbhr "alexbhr (21 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zotapay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/zotapay-php-sdk/health.svg)](https://phpackages.com/packages/zotapay-php-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
