Search by

beyonic / beyonic-php

beyonic

Beyonic PHP Library

Package info

github.com/beyonic/beyonic-php

Homepage

pkg:composer/beyonic/beyonic-php

Statistics

Installs: 86 422

Dependents: 1

Suggesters: 0

Stars: 6

Open Issues: 5

0.0.16 2022-09-08 15:09 UTC

README

This SDK is nolonger supported. It was deprecated and made private on Thursday Nov 26, 2026. Any users should contact Onafriq (https://onafriq.com) for the supported ways of connecting to Onafriq's APIs.

Beyonic PHP Library

Php library for the http://onafriq.com API

It requires PHP version 5.4+

Installation

Manual

To use the library, download the latest release and uncompress it in a location that's on your project's include path.

Once that's done, you can include the library in your scripts as follows:

require('./lib/Beyonic.php');

Composer

To install the library via Composer, add composer.json:

{
  "require": {
    "beyonic/beyonic-php": "*"
  }
}

Usage

Please visit https://developer.mfsafrica.com/docs for usage documentation

Latest Stable Version Latest Unstable Version Total Downloads License

Changelog

0.0.11

Adding Network and Currency APIs, and adding ability to set Duplicate-Check-Key header for each create() or update() request.

0.0.14

Bug fixes that prevented Network and Currency APIs from working in 0.0.11, 0.0.12 and 0.0.13

0.0.15

Bug fixes

0.0.16

Added the Beyonic Bank API

0.0.17

Security fix: TLS certificate and hostname verification are now enforced on all API requests. Earlier versions disabled peer certificate verification, which let an attacker on the network path intercept the API token and alter responses. All users should upgrade. If your PHP install has no CA bundle configured, set curl.cainfo in php.ini rather than disabling verification.

Default API host is now https://api.onafriq.com/api.

The Beyonic-Client-Version header now reports the correct version.

Requests now send a User-Agent of the form beyonic-php/<version> PHP/<php version>. Pass a User-Agent header in $headerParameters to override it.