PHPackages                             thegr8dev/eclassmpesa - 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. thegr8dev/eclassmpesa

ActiveLibrary[Payment Processing](/categories/payments)

thegr8dev/eclassmpesa
=====================

This is additional addon which add mpesa(safaricom) payment gateway for eclass

v1.0.4(5y ago)08HTML

Since Aug 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thegr8dev/eclassmpesa)[ Packagist](https://packagist.org/packages/thegr8dev/eclassmpesa)[ RSS](/packages/thegr8dev-eclassmpesa/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (5)Used By (0)

\#Eclass Mpesa Add On Installing and Setup Wizard

\#####Before installing this package make sure [smodav/mpesa](https://github.com/SmoDav/mpesa) is installed.

### Requirements

[](#requirements)

1. Eclass version v2.2 or above.
2. php version 7.2 or 7.3 must be.

### Installation

[](#installation)

Run the package using follwing command:

`composer require eclass/eclassmpesa`

After successully install add run the following command:

`php artisan eclassmpesa:install`

After run the command add following variables in .env file of your script

Open\*\* .env\*\* file and add this:

- MPESA\_DEFAULT=staging
- MPESA\_KEY=
- MPESA\_SECRET=
- MPESA\_INITIATOR=
- MPESA\_PASSKEY=
- MPESA\_PAYBILL=
- MPESA\_SHORTCODE=
- MPESA\_ENABLE=0
- MPESA\_VALIDATION=
- MPESA\_CALLBACK=

#### Note:

[](#note)

Update the following URLs in your .env file

Update mpesa validation url in **MPESA\_VALIDATION**

Your mpesa validation url will be :

`https://yourdomain.com/public/api/payment/validation`

Update mpesa callback url in **MPESA\_CALLBACK**

Your mpesa callback url will be :

`https://yourdomain.com/public/api/payment/confirm/callback`

Remove **public** if your domain not have in url.

**Wohoo ! You Successfully installed the Mpesa Add On your eClass.**

### Update FAQ.

[](#update-faq)

**Q. What if new update came?**

Well add-on we updated time to time and you should keep eye on the addon page by bookmarking it. if a new update came just hit follwing command. new version will be released with new version tag.

`composer update`

**on your project root directory**.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

2092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec9078a8fef7f4dd336e66b96b5093ee4b382423771ce330ca9d755f2ae5026?d=identicon)[thegr8dev](/maintainers/thegr8dev)

---

Top Contributors

[![thegr8dev](https://avatars.githubusercontent.com/u/33778557?v=4)](https://github.com/thegr8dev "thegr8dev (8 commits)")

### Embed Badge

![Health badge](/badges/thegr8dev-eclassmpesa/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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