momospay / momospay-php
Php sdk of Momospay - Online payment solution by credit card and mobile money
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- ext-openssl: *
- guzzlehttp/guzzle: ^7.0.1
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-12 16:51:53 UTC
README
The Momospay PHP library provides convenient access to the Momospay 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 Momospay API.
You can sign up for a Momospay account at https://momospay.com.
Requirements
PHP 5.5 and later.
Composer
You can install the bindings via Composer. Run the following command:
composer require momospay/momospay-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/momospay-php/init.php');
Dependencies
The bindings require the following extension in order to work properly:
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.momospay.com for up-to-date documentation.
Development
Install dependencies:
composer install