Download the PHP package zayono/zayono-php without Composer

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

Zayono PHP SDK

Packagist

Official PHP SDK for Zayono, the unified Mobile Money payment gateway for Africa.

Wraps the Zayono REST API with authentication, automatic retries, idempotency, lazy pagination, typed exceptions, and webhook signature verification.

Requirements

Installation

Quick start

Configuration

The environment (sandbox vs live) is derived server-side from the API key prefix:

Examples

1. Initialize a payment

2. Retrieve and verify a payment

3. Send a payout

Refunds: the public API-key v1 surface does not yet expose POST /v1/payments/{id}/refunds. For now, trigger refunds from the Zayono merchant dashboard. A refunds resource will be added to this SDK once the endpoint ships on the v1 surface.

4. Verify a webhook signature

5. Paginate through every payment

For a single page:

Idempotency

Every POST, PATCH, PUT, and DELETE request automatically receives a fresh X-Idempotency-Key (UUID v4) so retried calls never double-process a transaction. Override the key explicitly when you need to:

Retries

Transient failures are retried 3 times by default with exponential backoff (250 ms → 1 s → 4 s):

4xx responses (other than 429) are never retried.

Error handling

Every API error is mapped to a typed exception extending Zayono\Exceptions\ZayonoException:

Every exception exposes:

Logging

The SDK accepts any PSR-3 logger. Requests log at info; 4xx/5xx and retries log at warning.

PSR-18 / custom HTTP clients

Swap Guzzle for any PSR-18 implementation by passing it to the constructor:

Testing

License

MIT © Zayono


All versions of zayono-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.5
psr/http-client Version ^1.0
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.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 zayono/zayono-php contains the following files

Loading the files please wait ...