Download the PHP package nyanumba-codes/mpesa without Composer
On this page you can find all versions of the php package nyanumba-codes/mpesa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nyanumba-codes/mpesa
More information about nyanumba-codes/mpesa
Files in nyanumba-codes/mpesa
Package mpesa
Short Description MPESA Integration into Laravel and other php frameworks
License MIT
Informations about the package mpesa
M-Pesa Integration for Laravel
A robust PHP library for integrating Safaricom's M-Pesa API with Laravel applications. This package simplifies payments, QR code generation, and transaction management.
Features
- Dynamic QR Code Generation
- STK Push (Customer Payment)
- C2B Simulations
- B2C Transactions
- Transaction Status Checks
- Account Balance Inquiry
- Reversals
- Secure Authentication
Installation
Install via Composer:
Configuration
First Run the Installation:
The Environment value can either be left blank, or written sandbox
for The Sandbox Certificate file to be downloaded into the public folder or production
for the Production Certificate to be downloaded.
Ensure the Safaricom public certificate (cert.cer) is stored securely under public/mpesa
.
After this you may proceed to update your .env file. This one is rather longer this time round because all the MPESA APIs have been covered by this application. I have even separated all the Callbacks, Timeouts and Result URL to allow for development maleability.
Usage
Initialize the class where you wish to use it:
1. Generate Dynamic QR Code
2. Process STK Push (MPESA Express Simulate)
3. Process STK Push (MPESA Express Simulate)
4. Perform C2B Simulation
5. Handle Reversals
License
This package is open-source and licensed under the MIT License.
All versions of mpesa with dependencies
laravel/framework Version >=10.0
illuminate/support Version >=10.0
illuminate/console Version *