PHPackages                             redde/php-api-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. redde/php-api-sdk

ActiveLibrary[API Development](/categories/api)

redde/php-api-sdk
=================

Redde API wrapper

v1.2.0(4y ago)0365MITPHPPHP &gt;=5.5.0

Since Jan 21Pushed 3y agoCompare

[ Source](https://github.com/otengkwame/redde-php-sdk)[ Packagist](https://packagist.org/packages/redde/php-api-sdk)[ Docs](https://www.reddeonline.com/)[ RSS](/packages/redde-php-api-sdk/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![](https://camo.githubusercontent.com/ef268b2c51331d0139d26a0ebec6bfd39ce69af6ec69b5bf864ee43481b0dd71/68747470733a2f2f7777772e72656464656f6e6c696e652e636f6d2f6173736574732f696d672f72656464652d6c6f676f2e706e67)](https://camo.githubusercontent.com/ef268b2c51331d0139d26a0ebec6bfd39ce69af6ec69b5bf864ee43481b0dd71/68747470733a2f2f7777772e72656464656f6e6c696e652e636f6d2f6173736574732f696d672f72656464652d6c6f676f2e706e67)

[![GitHub version](https://camo.githubusercontent.com/62bc0ff09ea4af202eb7306f9a080e6b9a23c722b01975d8e1e9daf83626f678/68747470733a2f2f6432356c6369707a696a3137642e636c6f756466726f6e742e6e65742f62616467652e7376673f69643d676826747970653d3626763d312e302678323d30)](https://packagist.org/packages/redde/php-api-sdk)[![Maintenance](https://camo.githubusercontent.com/5ca62441414bacaa54c6c6e5b68e46c76305947b6bf498c4949fc71c1b4b10dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642533462d7965732d677265656e2e737667)](https://github.com/wigalsolutionsltd/redde-php-sdk)[![made-with-php](https://camo.githubusercontent.com/02ea7f3d319ab009e09caad3cdd1d9708805258a08815086a5f2be0ded992b3a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d616465253230776974682d5048502d3166343235662e737667)](https://www.php.net/)[![MIT license](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://github.com/wigalsolutionsltd/redde-php-sdk/)[![ForTheBadge built-by-developers](https://camo.githubusercontent.com/df2d88400f7e1f410dd74297c1fe96bf3d4caef150a62ce7ba2a392cbed0674f/687474703a2f2f466f7254686542616467652e636f6d2f696d616765732f6261646765732f6275696c742d62792d646576656c6f706572732e737667)](https://www.reddeonline.com/)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

Redde-php-sdk
=============

[](#redde-php-sdk)

A PHP SDK built around the Redde REST API that allows merchants to receive, send, check transaction status, and perform lots of payment transactions.

Before you can have access to APIs you need to register and create an [Account](https://app.reddeonline.com/register). Header for all request should have {"apikey": "string"}: and this API key will be sent to merchant when their app configuration is setup for them by Wigal.

For more information on documentation go to [developers.reddeonline.com](https://developers.reddeonline.com/rest-api.html)

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)

Installation
------------

[](#installation)

To use this library you'll need to have [created a Redde account](https://app.reddeonline.com/register).

To install this library and use in your project, we recommend using [Composer](https://getcomposer.org/).

```
composer require redde/php-api-sdk
```

> You don't need to clone this repository to use this library in your own projects. Use Composer to install it from Packagist.

If you're new to Composer, here are some resources that you may find useful:

- [Composer's Getting Started page](https://getcomposer.org/doc/00-intro.md) from Composer project's documentation.
- [A Beginner's Guide to Composer](https://scotch.io/tutorials/a-beginners-guide-to-composer) from the good people at ScotchBox.

Usage
-----

[](#usage)

If you're using Composer, make sure the autoloader is included in your project's bootstrap file:

```
require_once "vendor/autoload.php";
```

Create an api object with your API key and App ID which will be provided to you by the Redde Team:

```
$api = new ReddeApi(API_KEY, APP_ID);
```

Examples
--------

[](#examples)

### Receiving money from Customer or Client

[](#receiving-money-from-customer-or-client)

To use the API to recieve money from a customer, the receiveMoney() method will be used using a simple array of parameters, the keys match the parameters of the API.

```
/**
* An example of using the Redde Api to receive money
*/

require_once 'vendor/autoload.php';

//Configuration file contains apikey and appid
$config = include 'config.php';

use Redde\Exceptions\ReddeApiException;
use Redde\Exceptions\ReddeException;
use Redde\ReddeApi;

/* Replace this with your API key and App Id
 You can also insert the apikey and appid here directly
 and ignore the config.php file
*/

$apikey = $config['apikey'];
$app_id = $config['appid'];

$api = new ReddeApi($apikey, $app_id);

/* Note that the clienttransid and clientreference is generated
  by the developer. The nickname is your identity name eg. Wigal
*/

$params = [
    "amount" => 1, //amount to receive
    "appid" => $config['appid'], //your app id
    "clientreference" => client_reference_here, //client reference from your side
    "clienttransid" => client_transaction_id_here, //client transaction id from your side
    "description" => "Recieving payment from {$client_reference_here}", //A description for the transaction performed
    "nickname" => "nickname_here", //a name to give to who is paying
    "paymentoption" => "MTN", //payment options are MTN|AIRTELTIGO|VODAFONE
    "vouchercode" => "", //this is optional for vodafone
    "walletnumber" => "024XXXXXXX" //the mobile number to use
];

/**
* Call receiveMoney function and pass
* the payload as parameter. This will
* return a response which you can save
* in any storage of your choice
*/
$api->receiveMoney($params);
```

### Sending money to Customer or Client

[](#sending-money-to-customer-or-client)

To use the API to send money to a customer, the sendMoney() method will be used using a simple array of parameters, the keys match the parameters of the API.

```
/**
* An example of using the Redde Api to send money
*/

require_once 'vendor/autoload.php';

//Configuration file contains apikey and appid
$config = include 'config.php';

use Redde\Exceptions\ReddeApiException;
use Redde\Exceptions\ReddeException;
use Redde\ReddeApi;

/* Replace this with your API key and App Id
 You can also insert the apikey and appid here directly
 and ignore the config.php file
*/

$apikey = $config['apikey'];
$app_id = $config['appid'];

$api = new ReddeApi($apikey, $app_id);

/* Note that the clienttransid and clientreference is generated
  by the developer. The nickname is your identity name eg. Wigal
*/

$params = [
    "amount" => 1, //amount to receive
    "appid" => $config['appid'], //your app id
    "clientreference" => client_reference_here, //client reference from your side
    "clienttransid" => client_transaction_id_here, //client transaction id from your side
    "description" => "Sending payment from {$client_reference_here}", //A description for the transaction performed
    "nickname" => "nickname_here", //a name to give to who is paying
    "paymentoption" => "MTN", //payment options are MTN|AIRTELTIGO|VODAFONE
    "walletnumber" => "024XXXXXXX" //the mobile number to use
];

/**
* Call receiveMoney function and pass
* the payload as parameter. This will
* return a response which you can save
* in any storage of your choice
*/
$api->sendMoney($params);
```

### Callbacks

[](#callbacks)

Most APIs implement callbacks for easy tracking of api transactions so we've spun something simple for you to use. Check it out

```
/**
* A simple implementation of callback
* on Redde Api
*/

require_once '../vendor/autoload.php';
use Redde\Exceptions\ReddeApiException;
use Redde\Exceptions\ReddeException;
use Redde\Webhooks\WebHookStatus;

$status = new WebHookStatus(); //instantiate an object

$data = $status->callback(); //get callback and set it to a variable

echo $data->reason; //output any data e.g. status|reason| etc
```

License
=======

[](#license)

This library is released under the MIT License

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~532 days

Total

2

Last Release

1775d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f834f6a5be72147b3c904bde64008b1c160085371d6af0209367b52cc004728?d=identicon)[otengkwame](/maintainers/otengkwame)

---

Top Contributors

[![otengkwame](https://avatars.githubusercontent.com/u/3446150?v=4)](https://github.com/otengkwame "otengkwame (23 commits)")

---

Tags

developerkwamepayment-apipayment-gatewaypayment-integrationpayment-platformreddemobile-moneycard-paymentsonline-paymentpayment-integrationwigalwigal solutions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/redde-php-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/redde-php-api-sdk/health.svg)](https://phpackages.com/packages/redde-php-api-sdk)
```

###  Alternatives

[samerior/mobile-money

Mobile payments API - Kenya

252.3k](/packages/samerior-mobile-money)[openpesa/pesa

Pesa PHP SDK

291.3k2](/packages/openpesa-pesa)[yo-uganda/yopaymentsphp

A PHP Library to interact with the Yo! Payments API.

122.4k](/packages/yo-uganda-yopaymentsphp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
