Download the PHP package gathuku/laravelmpesa without Composer
On this page you can find all versions of the php package gathuku/laravelmpesa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gathuku/laravelmpesa
More information about gathuku/laravelmpesa
Files in gathuku/laravelmpesa
Package laravelmpesa
Short Description A simple mpesa package for laravel framework
License MIT
Homepage https://github/gathuku/laravel_mpesa
Informations about the package laravelmpesa
Laravel Mpesa Package
This package helps you integrate your laravel application with Mpesa daraja APIs. The package eliminates (almost)all the hassles and lets you concentrate on what is important.
The package will help you integrate with the following APIs, available on mpesa daraja;
- C2B (consumer to business)
- B2C (business to cunsumer)
- Lipa na mpesa online(Mpesa Express)
- Reversal
- Transaction status
- Account balance
Documentation
You are looking at it. But we've also got beautiful, fully navigable docs.
Installation
You can install this awesome package via composer
If you're using Laravel >=5.5, this is all you have to do.
Should you still be on version 5.4 of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your config/app.php
file.
Add a new line to the providers
array:
And optionally add a new line to the aliases
array:
Happy Coding :tada: :100:
Configuration
Next, after the package has been installed run;
or
This will help in publishing config/mpesa.php
file.
This mpesa config file is where you will add all configurations for Mpesa APIs.
This includes the environment your application is running in(sandbox or production), callback URLs and required credentials.
You will obtain credentials from your app
on Safaricom's developer portal.
For production you need to replace with production credentials.
For security reasons you may want to define your API credentials in env
file. For example;
Usage
Full usage and examples in USAGE.md
Contributing
Thank you for considering contributing to laravelmpesa
. Pull requests and issues welcome.
Be sure to read through CONTRIBUTING.md and check open issues and PRs before continuing.
Security Vulnerabilities
If you discover a security vulnerability within laravelmpesa
, please send an e-mail to Moses Gathuku via [email protected]. All security vulnerabilities will be promptly addressed.
License
The laravelmpesa
package is open-source software licensed under the MIT license