PHPackages                             nzokolab/mtnmomo - 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. nzokolab/mtnmomo

ActiveLibrary[API Development](/categories/api)

nzokolab/mtnmomo
================

This package helps you integrate the MTN MOMO API into your Laravel application. It provides a wrapper around the core MTN MOMO API services, leaving you to worry about other parts of your application.

0.0.1(1y ago)012MITPHPPHP ^7.3|^8.0

Since May 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rosnjs/mtnmomo)[ Packagist](https://packagist.org/packages/nzokolab/mtnmomo)[ Docs](https://github.com/nzokolab/laravel-mtnmomo)[ RSS](/packages/nzokolab-mtnmomo/feed)WikiDiscussions master Synced 1mo ago

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

```
### Introduction

This package facilitates the integration of the [MTN MOMO API](https://momodeveloper.mtn.com) into your Laravel application. It offers a convenient wrapper around the core MTN MOMO API services, freeing you to focus on other aspects of your application.

### Installation

To begin, install the package via Composer:

```bash
composer require nzokolab/mtnmomo
```

**Custom Configuration**

If you wish to customize the default configurations, export the default configuration using:

```bash
php artisan vendor:publish --provider="Nzokolab\MtnMomo\MtnMomoServiceProvider" --tag="config"
```

**Database Migration**

The package service provider registers its own database migrations with the framework. Therefore, after installation, migrate your database:

```bash
php artisan migrate
```

### Prerequisites

Before integrating, ensure you have the following:

1. Create a [**developer account**](https://momodeveloper.mtn.com/signup) with MTN MOMO.
2. Subscribe to a [**product/service**](https://momodeveloper.mtn.com/products) you intend to consume.

If you've already subscribed to a product, find the subscription key in your [**profile**](https://momodeveloper.mtn.com/developer).

### Getting Started (Sandbox)

Register your client details:

```bash
php artisan mtn-momo:init
```

Next, register your client app ID:

```bash
php artisan mtn-momo:register-id
```

Optionally, you can verify your client ID:

```bash
php artisan mtn-momo:validate-id
```

Then, request a client secret (key):

```bash
php artisan mtn-momo:request-secret
```

### Usage

```php
use Nzokolab\MtnMomo\Products\Collection;

$collection = new Collection();

$referenceId = $collection->requestToPay('yourTransactionId', '46733123454', 100);
```

See [test numbers](https://momodeveloper.mtn.com/api-documentation/testing/#test-numbers)

**Exception Handling**

```php
use Nzokolab\MtnMomo\Products\Collection;
use Nzokolab\MtnMomo\Exceptions\CollectionRequestException;

try {
    $collection = new Collection();

    $referenceId = $collection->requestToPay('yourTransactionId', '46733123453', 100);
} catch(CollectionRequestException $e) {
    do {
        printf("\n\r%s:%d %s (%d) [%s]\n\r",
            $e->getFile(), $e->getLine(), $e->getMessage(), $e->getCode(), get_class($e));
    } while($e = $e->getPrevious());
}
```

### [Available Methods](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products.html)

**Collection**

1. [Collect Money](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_requestToPay)

2. [Check Transaction Status](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_getTransactionStatus)

3. [Check Account Balance](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_getAccountBalance)

4. [Check Account Status](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_isActive)

5. [Get OAuth Token](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_getToken)

6. [Get Account Holder Info](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_getAccountHolderBasicInfo)

**Disbursement**

1. [Disburse Money](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Disbursement.html#method_transfer)

2. [Check Transaction Status](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Disbursement.html#method_getTransactionStatus)

3. [Check Account Balance](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Disbursement.html#method_getAccountBalance)

4. [Check Account Status](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Disbursement.html#method_isActive)

5. [Get OAuth Token](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Disbursement.html#method_getToken)

6. [Get Account Holder Info](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_getAccountHolderBasicInfo)

**Remittance**

1. [Remit Money](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/M

tnMomo/Products/Remittance.html#method_transact)

2. [Check Transaction Status](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Remittance.html#method_getTransactionStatus)

3. [Check Account Balance](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Remittance.html#method_getAccountBalance)

4. [Check Account Status](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Remittance.html#method_isActive)

5. [Get OAuth Token](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Remittance.html#method_getToken)

6. [Get Account Holder Info](https://mtvbrianking.github.io/laravel-mtn-momo/master/Nzokolab/MtnMomo/Products/Collection.html#method_getAccountHolderBasicInfo)

### Go Live

Make necessary changes to your setup before going live. [Read more](https://github.com/mtvbrianking/laravel-mtn-momo/wiki/Go-Live).

### Support Groups

Join MTN's Skype & WhatsApp support groups. [Here](https://momodeveloper.mtn.com/contact-support)

### Reporting Bugs

If you encounter a bug, provide as much information as possible:
- Steps to reproduce
- Expected result
- Actual result

This helps us fix the bug quickly. If you wish to fix it yourself, feel free to [fork the package](https://github.com/rosnjs/mtnmomo) and submit a pull request!
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

719d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46961fee417058ef68963a14ab8ee971521c51cd299fdfefea6c546b70db5650?d=identicon)[nzokolab](/maintainers/nzokolab)

---

Top Contributors

[![rosnjs](https://avatars.githubusercontent.com/u/105083577?v=4)](https://github.com/rosnjs "rosnjs (5 commits)")

---

Tags

apilaravelpackagemtnmomoNzokolab

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/nzokolab-mtnmomo/health.svg)

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

###  Alternatives

[bmatovu/laravel-mtn-momo

Laravel MTN MOMO integration.

14310.9k](/packages/bmatovu-laravel-mtn-momo)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)

PHPackages © 2026

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