PHPackages                             pro-cms/laravel-pesa - 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. pro-cms/laravel-pesa

ActiveLibrary[API Development](/categories/api)

pro-cms/laravel-pesa
====================

Easy OpenAPI integration for Laravel Apps

1.0.2(3y ago)06MITPHP

Since Apr 1Pushed 3y agoCompare

[ Source](https://github.com/pro-cms/laravel-pesa)[ Packagist](https://packagist.org/packages/pro-cms/laravel-pesa)[ Docs](https://github.com/openpesa/laravel-pesa)[ RSS](/packages/pro-cms-laravel-pesa/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (3)Versions (10)Used By (0)

Laravel Pesa
============

[](#laravel-pesa)

Easy intergation Mpesa OpenAPI in your Laravel applications.

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

[](#installation)

Begin by adding in the package through Composer.

```
composer require openpesa/laravel-pesa
```

If you need to modify the configuations, you can run:

```
php artisan vendor:publish --provider="Openpesa\PesaServiceProvider"
```

Usage
-----

[](#usage)

### Simple usage example

[](#simple-usage-example)

Within your controllers, before you perform a redirect, make a call to the `pesa()` function.

```
public function store()
{
    $data = [
        'input_Amount'=>5000,
        // ...
    ];

    try {
        pesa()->c2b($data);
    } catch(\Throwable $th) {
    }

    return back();
}
```

Full laravel example : [laravel-pesa-demo](https://github.com/alphaolomi/laravel-pesa-demo)

### Security

[](#security)

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

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.4% 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 ~123 days

Total

5

Last Release

1427d ago

Major Versions

v0.0.3 → v1.0.02022-02-26

PHP version history (2 changes)v0.0.2PHP ^7.1

v0.0.3PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0106b85cb7795defc0d17a630c94a97e9f9e33c6e8e433fe2bc340f40f444bc5?d=identicon)[zepson](/maintainers/zepson)

---

Top Contributors

[![alphaolomi](https://avatars.githubusercontent.com/u/10551599?v=4)](https://github.com/alphaolomi "alphaolomi (13 commits)")[![pro-cms](https://avatars.githubusercontent.com/u/57701433?v=4)](https://github.com/pro-cms "pro-cms (5 commits)")[![JemCdo](https://avatars.githubusercontent.com/u/40404495?v=4)](https://github.com/JemCdo "JemCdo (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pro-cms-laravel-pesa/health.svg)

```
[![Health](https://phpackages.com/badges/pro-cms-laravel-pesa/health.svg)](https://phpackages.com/packages/pro-cms-laravel-pesa)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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