arklemx/orange-money

The Orange Money Payment API integration for PHP

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:php-extension

v1.0.0 2023-01-03 15:12 UTC

This package is auto-updated.

Last update: 2024-04-25 15:02:04 UTC


README

What is this?

A PHP class, which is an implementation of the Orange Money Payment API of Orange.

The implementation focus is to make many types of payment, using the API Credentials credentials (accessKey). (You can get it by signing up to the Payment API.)

Requirements

Installation

Installation is recommended to be done via composer by running:

composer require karbura/orange-money

Alternatively you can add the following to the require section in your composer.json manually:

"karbura/orange-money"

Run composer update afterwards.

Usage

In your PHP project

To make payments , you'll need only one lines of code.

The first one is to set the accessKey and the originator (the name of who send the message).

The next step is to call the send()-method to send the message to the receivers(recipients).

Here is an example:

// Initialize the MessageBird
MessageBird::__construct("acessKey", "originator");

// Or create a component to use it

// send a message to a single receiver
$response = MessageBird::send(["+237653214587"], "My First SMS");

//Or

// set a list of receivers / recipients
$receivers = [
    "receiver1",
    "receiver2",
    "receiver3",
    ...
]

// and then make a single call to send
$response = MessageBird::send(["+237653214587"], "Send Many SMS");

Thank You for using this extension and if there is any problem, feel free to report it.