PHPackages                             ssiva/mpesa-daraja - 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. ssiva/mpesa-daraja

ActiveLibrary[API Development](/categories/api)

ssiva/mpesa-daraja
==================

M-Pesa Daraja Version API implementation

v4.1.6(2y ago)2783MITPHPPHP &gt;=8.1

Since Mar 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ssiva13/mpesa-daraja)[ Packagist](https://packagist.org/packages/ssiva/mpesa-daraja)[ RSS](/packages/ssiva-mpesa-daraja/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (16)Used By (3)

DARAJA API Library
------------------

[](#daraja-api-library)

This is a PHP package for the Safaricom's M-Pesa Daraja REST API.

### Installation

[](#installation)

The project is compatible with the composer dependency management tool.

1. Run the following command to install using composer

- #### Laravel Installation

    [](#laravel-installation)

    ```
    composer require ssiva/mpesa-laravel-sdk

    ```

    #### How to implement it? [Read docs here](https://github.com/ssiva13/mpesa-laravel-sdk/blob/v1.1.5/README.md).

    [](#how-to-implement-it-read-docs-here)
- #### Laravel Lumen Installation

    [](#laravel-lumen-installation)

    ```
    composer require ssiva/mpesa-lumen-sdk

    ```

    #### How to implement it? [Read docs here](https://github.com/ssiva13/mpesa-lumen-sdk#readme).

    [](#how-to-implement-it-read-docs-here-1)
- #### Yii2 Installation

    [](#yii2-installation)

    ```
    composer require --prefer-dist ssiva/yii2-mpesa-sdk

    ```

    #### How to implement it? [Read docs here](https://github.com/ssiva13/yii2-mpesa-sdk#readme).

    [](#how-to-implement-it-read-docs-here-2)
- #### Symfony Installation -- coming soon

    [](#symfony-installation----coming-soon)

    ```
    composer require "ssiva/mpesa-daraja":"dev-symfony"

    ```
- #### Installation Without Composer -- coming soon

    [](#installation-without-composer----coming-soon)

    ```
    git clone https://github.com/ssiva13/mpesa-daraja.git

    ```

    or

    Download Zip from `https://github.com/ssiva13/mpesa-daraja/archive/refs/heads/develop.zip`

Contributors
------------

[](#contributors)

I express my appreciation to the Ninjas who assisted me throughout the integration process and taught me valuable lessons or provided useful code during the journey.

[![](https://avatars.githubusercontent.com/u/20058478?v=4)
Simon Siva](https://github.com/ssiva13)[![](https://avatars.githubusercontent.com/u/37109790?v=4)
Kelvin Mukotso](https://github.com/mukotso)License
-------

[](#license)

The M-Pesa Package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90.1% 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 ~38 days

Recently: every ~69 days

Total

9

Last Release

849d ago

Major Versions

1.0 → 2.02023-03-13

2.0 → 3.02023-04-01

3.0 → v4.1.12023-04-01

PHP version history (2 changes)1.0PHP &gt;=7.4

3.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/f78c4ba477950afe6a8a185874c4b13223271208c2242cfc729000d155c38d17?d=identicon)[ssiva](/maintainers/ssiva)

---

Top Contributors

[![ssiva13](https://avatars.githubusercontent.com/u/20058478?v=4)](https://github.com/ssiva13 "ssiva13 (100 commits)")[![mukotso](https://avatars.githubusercontent.com/u/37109790?v=4)](https://github.com/mukotso "mukotso (11 commits)")

---

Tags

composerdaraja-apilaravellumenmpesaphpapimpesasafaricomdaraja

### Embed Badge

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

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

###  Alternatives

[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[kabangi/mpesa

M-Pesa API implementation

453.0k2](/packages/kabangi-mpesa)[samerior/mobile-money

Mobile payments API - Kenya

252.3k](/packages/samerior-mobile-money)

PHPackages © 2026

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