PHPackages                             leyo/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. [HTTP &amp; Networking](/categories/http)
4. /
5. leyo/mpesa

ActiveMobileintegration[HTTP &amp; Networking](/categories/http)

leyo/mpesa
==========

Mpesa G2 Api Laravel Negotiator

v0.0.6(9y ago)149211[1 issues](https://github.com/le-yo/mpesa/issues)MITPHP

Since Jun 10Pushed 9y ago3 watchersCompare

[ Source](https://github.com/le-yo/mpesa)[ Packagist](https://packagist.org/packages/leyo/mpesa)[ RSS](/packages/leyo-mpesa/feed)WikiDiscussions master Synced 2mo ago

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

\#Laravel 5 Package for B2C Mpesa G2 Negotiation

composer require leyo/mpesa

\#Add Service provider

leyo\\Mpesa\\MpesaServiceProvider::class

composer dump-autoload #MPESA Configs

From the root:

sudo nano .env

//Add the following configs as per your Mpesa API settings

SPID=SPID PASSWORD =PASSWORD SERVICEID=SERVICEID initiator\_username=initiator\_username initiator\_pass=initiator\_pass B2CPaybill=B2CPaybill result\_url=result\_url SSL\_CERT\_PATH=SSL\_CERT\_PATH SSL\_KEY\_PATH=SSL\_KEY\_PATH SSL\_PASS=SSL\_PASS APICRYPT\_PATH=APICRYPT\_PATH

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

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

Total

6

Last Release

3536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/105a31ce7d49d740450be7ee6a313416142beee69ed8e282e8072f641b97f29f?d=identicon)[le-yo](/maintainers/le-yo)

---

Top Contributors

[![le-yo](https://avatars.githubusercontent.com/u/1670007?v=4)](https://github.com/le-yo "le-yo (14 commits)")

---

Tags

restmpesalarvelG2 API

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k132.9M468](/packages/zircote-swagger-php)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)[league/fractal

Handle the output of complex data structures ready for API output.

3.5k64.1M476](/packages/league-fractal)[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)

PHPackages © 2026

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