pro-cms / laravel-pesa
Easy OpenAPI integration for Laravel Apps
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 9
pkg:composer/pro-cms/laravel-pesa
Requires
- pro-cms/pesa: 1.0.0
Requires (Dev)
- mockery/mockery: ^1.3.1
- phpunit/phpunit: ^7.1
This package is auto-updated.
Last update: 2025-10-07 20:50:07 UTC
README
Easy intergation Mpesa OpenAPI in your Laravel applications.
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
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
Security
If you discover any security related issues, please email alphaolomi@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.