PHPackages                             evance-odhiambo/mpesa-payment - 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. evance-odhiambo/mpesa-payment

ActiveLibrary[Payment Processing](/categories/payments)

evance-odhiambo/mpesa-payment
=============================

Facilitates easy MPESA payments

122PHP

Since Sep 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Evanda-crypto/evance-mpesa-payment)[ Packagist](https://packagist.org/packages/evance-odhiambo/mpesa-payment)[ RSS](/packages/evance-odhiambo-mpesa-payment/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d4f66b547b61341cbf8dad9a924af0b370eca8fa35e734d7a091db048f9dbcb1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6576616e63652d6f646869616d626f2f6d706573612d7061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/evance-odhiambo/mpesa-payment)[![Total Downloads](https://camo.githubusercontent.com/dd67eb73c826da8542c2225b8804b16adabafc9b163b1eb333ba1b37167e3c37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6576616e63652d6f646869616d626f2f6d706573612d7061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/evance-odhiambo/mpesa-payment)[![GitHub Actions](https://github.com/evance-odhiambo/mpesa-payment/actions/workflows/main.yml/badge.svg)](https://github.com/evance-odhiambo/mpesa-payment/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

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

[](#installation)

You can install the package via composer:

```
composer require evance-odhiambo/mpesa-payment
```

Usage
-----

[](#usage)

after Installation add In array of providers in config/app.php Put

```
EvanceOdhiambo\MpesaPayment\MpesaPaymentServiceProvider::class
```

and In aliases Put

```
EvanceMpesa' => EvanceOdhiambo\MpesaPayment\MpesaPaymentFacade::class to aliases
```

Then run

```
php artisan vendor:publish --tag=config
```

Inside config there is a file called evance-mpesa.php created just confirm

Now copy

```
MPESA_ENV=sandbox
CONSUMER_KEY=
CONSUMER_SECRET=
PAYBILL=174379
SHORTCODE=174379
PASSKEY=
C2B_VALIDATE_CALLBACK=
C2B_CONFIRM_CALLBACK=
CALLBACK_URL=
ACC_REF=
```

to your .env and fill with your details.

1. To Register C2B urls just call the bellow fn fromyour

```
 $response=EvanceMpesa::registerUrls()
```

Successfull registration results to

```
{
  "OriginatorCoversationID": "23311-116912840-1",
  "ResponseCode": "0",
  "ResponseDescription": "Success"
}
```

2 To initial Mpesa Express (C2B Payments) call

```
 $response=EvanceMpesa::express(1030,'714611350',$acc_ref,'Remarks')
```

Upon successfull stk push

```
{
  "MerchantRequestID": "101796-19195815-1",
  "CheckoutRequestID": "ws_CO_29062023231703226715711360",
  "ResponseCode": "0",
  "ResponseDescription": "Success. Request accepted for processing",
  "CustomerMessage": "Success. Request accepted for processing"
}
```

### NOTE

[](#note)

```
This Package is still under Development
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Evance Odhiambo](https://github.com/Evanda-crypto)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93912360?v=4)[Evance Odhiambo](/maintainers/Evanda-crypto)[@Evanda-crypto](https://github.com/Evanda-crypto)

---

Top Contributors

[![Evanda-crypto](https://avatars.githubusercontent.com/u/93912360?v=4)](https://github.com/Evanda-crypto "Evanda-crypto (20 commits)")

### Embed Badge

![Health badge](/badges/evance-odhiambo-mpesa-payment/health.svg)

```
[![Health](https://phpackages.com/badges/evance-odhiambo-mpesa-payment/health.svg)](https://phpackages.com/packages/evance-odhiambo-mpesa-payment)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18579.5k1](/packages/omnipay-coinbase)[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[binkode/laravel-paystack

A description for laravel-paystack.

112.1k](/packages/binkode-laravel-paystack)

PHPackages © 2026

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