PHPackages                             ghostscypher/laravel-mpesa - 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. ghostscypher/laravel-mpesa

ActiveLibrary[API Development](/categories/api)

ghostscypher/laravel-mpesa
==========================

This is a wrapper around Mpesa APIs for Laravel.

v1.7(2mo ago)3428—8.3%MITPHPPHP ^7.4|^8.0CI passing

Since Aug 27Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/Ghostscypher/laravel-mpesa)[ Packagist](https://packagist.org/packages/ghostscypher/laravel-mpesa)[ RSS](/packages/ghostscypher-laravel-mpesa/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (16)Versions (12)Used By (0)

Laravel Mpesa
=============

[](#laravel-mpesa)

[![Latest Version on Packagist](https://camo.githubusercontent.com/98cb03652ebdf7359660970df2b97af026a99c1bbb7b676c44a89e5ec05f8af5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67686f7374736379706865722f6c61726176656c2d6d706573612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ghostscypher/laravel-mpesa)[![Build Status](https://github.com/ghostscypher/laravel-mpesa/actions/workflows/run-tests.yml/badge.svg?)](https://github.com/ghostscypher/laravel-mpesa)[![Total Downloads](https://camo.githubusercontent.com/a9fd6eb622424fde33d6183abb1f7537a16d4d6f8390ceaf68cf6419e9423304/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67686f7374736379706865722f6c61726176656c2d6d706573612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ghostscypher/laravel-mpesa)

This package provides a simple way to integrate Mpesa APIs in your Laravel application. This package is targeted at developers who are looking to integrate Mpesa APIs in their Laravel applications. In addition to the Mpesa APIs, this package also provides a simple way to handle the Mpesa callbacks. Hence the name "Mpesa package for the lazy developer 😉".

APIs Supported
--------------

[](#apis-supported)

- B2C
- B2B
- C2B
- BillManager
- Reversal
- Transaction Status
- Account Balance
- QR Code Generation

Compatibility
-------------

[](#compatibility)

This package is compatible with Laravel 7.x and above.

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

[](#installation)

You can install the package via composer:

```
composer require ghostscypher/mpesa
```

After installing run

```
php artisan mpesa:install
```

In order to publish assets

Documentation
-------------

[](#documentation)

The documentation for this package can be found on .

You can support us by starring this repository.

If you found a bug, have a suggestion or need help, feel free to [create an issue](https://gihub.com/ghostscypher/mpesa/issues).

If you find a security vulnerability, please follow the procedure in [SECURITY.md](SECURITY.md).

Alternatives
------------

[](#alternatives)

If you don't like our package, do try out one of these alternatives:

- [Iankumu/mpesa](https://github.com/Iankumu/mpesa)
- [gathuku/laravelmpesa](https://github.com/gathuku/laravelmpesa)

Testing
-------

[](#testing)

```
composer test
```

Upgrading
---------

[](#upgrading)

Please see [UPGRADING](UPGRADING.md) for details.

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please send an email to .

See [SECURITY.md](SECURITY.md) for more information.

Credits
-------

[](#credits)

- [Ghostscypher](https://github.com/ghostscypher)
- Special thanks to [Iankumu](https://github.com/Iankumu/mpesa) for the inspiration.

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance83

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.3% 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 ~69 days

Recently: every ~112 days

Total

10

Last Release

85d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32034312?v=4)[Brian Ngetich](/maintainers/Ghostscypher)[@Ghostscypher](https://github.com/Ghostscypher)

---

Top Contributors

[![Ghostscypher](https://avatars.githubusercontent.com/u/32034312?v=4)](https://github.com/Ghostscypher "Ghostscypher (59 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravellaravel-mpesalaravel-packagempesaapilaravelpaymentmpesalaravel mpesasafaricommpesa-apidarajadaraja-apimpesa laravelmpesa-laravel-packagempesa-laravel-wrapper

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ghostscypher-laravel-mpesa/health.svg)

```
[![Health](https://phpackages.com/badges/ghostscypher-laravel-mpesa/health.svg)](https://phpackages.com/packages/ghostscypher-laravel-mpesa)
```

###  Alternatives

[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M185](/packages/spatie-laravel-health)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[nativephp/mobile

NativePHP for Mobile

1.1k102.1k133](/packages/nativephp-mobile)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)

PHPackages © 2026

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