PHPackages                             baffouradu/mazzuma - 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. [Payment Processing](/categories/payments)
4. /
5. baffouradu/mazzuma

ActiveLibrary[Payment Processing](/categories/payments)

baffouradu/mazzuma
==================

A library for Mazzuma's Payment Gateway

0.0.6(7y ago)222MITPHPPHP ~5.6|~7.0

Since Aug 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/BaffourAdu/Mazzuma-PHP)[ Packagist](https://packagist.org/packages/baffouradu/mazzuma)[ Docs](https://github.com/BaffourAdu/Mazzuma)[ RSS](/packages/baffouradu-mazzuma/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Mazzuma-PHP
===========

[](#mazzuma-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1a9ccf18eca0cd843f5f11a1f865ea69d00ef6ad84c55e7d937d885f104acc75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f426166666f75724164752f6d617a7a756d612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/BaffourAdu/mazzuma)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9cacb354d2f3b8a34c9440a72c4cdf7d486fa5bc24eeb40b0b480c4652c56840/68747470733a2f2f7472617669732d63692e6f72672f426166666f75724164752f4d617a7a756d612d5048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/BaffourAdu/Mazzuma-PHP)[![Code Coverage](https://camo.githubusercontent.com/3c66cbebc52b54e01b27524837e3ee75080d7d9a1f31baeeacadd058a7452972/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f426166666f75724164752f4d617a7a756d612d5048502f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/BaffourAdu/Mazzuma-PHP/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f3c000eb9668a9983758458f6ed54dbb89ad4bd7537bea8c318d1a829fc8deb8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f426166666f75724164752f4d617a7a756d612d5048502f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/BaffourAdu/Mazzuma-PHP/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/29199547afe00326cb930a86250089a793164470121157adfac178057c6b1bc6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f426166666f75724164752f6d617a7a756d612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/BaffourAdu/mazzuma)

A library for consuming Mazzuma's payment API to send or recieve Mobile Money for a PHP Application.

Install
-------

[](#install)

Via Composer

```
$ composer require baffouradu/mazzuma
```

Usage
-----

[](#usage)

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

use \BaffourAdu\Mazzuma\MazzumaPayment;

//Replace this with API key as obtained from https://dashboard.mazzuma.com/
$APIKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";

$payment = new MazzumaPayment($APIKey);

try {
    $response = $payment->transfer('MTN_TO_MTN')
                ->amount(1)
                ->from('05xxxxxx')
                ->to('02xxxxxx')
                ->send();

    if ($payment->isSuccessful()) {
        /* $response holds the original
        structure of Mazzuma's API Response */
        echo json_encode($response);
    } else {
        /* $response holds the original
        structure of Mazzuma's API Response */
        echo json_encode($response);
    }
} catch (Exception $e) {
    echo 'Message: ' .$e->getMessage();
}
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Baffour Adu Boampong](https://twitter.com/BaffourBoampong)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~0 days

Total

5

Last Release

2827d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d61fe2ee79167319417be2be3f8ae1388150292c8d2be8bd431fd079250fb85c?d=identicon)[BaffourAdu](/maintainers/BaffourAdu)

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (49 commits)")[![BaffourAdu](https://avatars.githubusercontent.com/u/22221905?v=4)](https://github.com/BaffourAdu "BaffourAdu (37 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (34 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (10 commits)")[![jotaelesalinas](https://avatars.githubusercontent.com/u/2042875?v=4)](https://github.com/jotaelesalinas "jotaelesalinas (8 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![hansott](https://avatars.githubusercontent.com/u/3886384?v=4)](https://github.com/hansott "hansott (7 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (5 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (5 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (5 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![jclyons52](https://avatars.githubusercontent.com/u/6395559?v=4)](https://github.com/jclyons52 "jclyons52 (3 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (2 commits)")[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (2 commits)")

---

Tags

paymentsmobile-moneybaffouradumazzuma

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/baffouradu-mazzuma/health.svg)

```
[![Health](https://phpackages.com/badges/baffouradu-mazzuma/health.svg)](https://phpackages.com/packages/baffouradu-mazzuma)
```

###  Alternatives

[amzn/amazon-pay-sdk-php

Amazon Pay SDK (PHP)

20512.1M3](/packages/amzn-amazon-pay-sdk-php)[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5211.1M12](/packages/ignited-laravel-omnipay)[recurly/recurly-client

The PHP client library for the Recurly API

1736.3M7](/packages/recurly-recurly-client)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[amzn/amazon-pay-api-sdk-php

Amazon Pay API SDK (PHP)

505.1M9](/packages/amzn-amazon-pay-api-sdk-php)

PHPackages © 2026

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