bobospay/bobospay-php

Php sdk of Bobospay - Online payment solution by credit card and mobile money

v1.1.0 2023-04-26 23:34 UTC

This package is auto-updated.

Last update: 2024-05-27 02:39:29 UTC


README

The Bobospay PHP library provides convenient access to the Bobospay API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Bobospay API.

You can sign up for a Bobospay account at https://bobospay.com.

Requirements

PHP 5.5 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require bobospay/bobospay-php

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file.

require_once('/path/to/bobospay-php/init.php');

Dependencies

The bindings require the following extension in order to work properly:

  • curl, although you can use your own non-cURL client if you prefer
  • json
  • openssl

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started

Simple usage looks like:

Documentation

Please see https://docs.bobospay.com for up-to-date documentation.

Development

Install dependencies:

composer install