Download the PHP package codeonweekends/mpesa-php-sdk without Composer
On this page you can find all versions of the php package codeonweekends/mpesa-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download codeonweekends/mpesa-php-sdk
More information about codeonweekends/mpesa-php-sdk
Files in codeonweekends/mpesa-php-sdk
Download codeonweekends/mpesa-php-sdk
More information about codeonweekends/mpesa-php-sdk
Files in codeonweekends/mpesa-php-sdk
Vendor codeonweekends
Package mpesa-php-sdk
Short Description (Unofficial) PHP SDK for the MPesa payment gateway by Vodacom Mozambique
License MIT
Package mpesa-php-sdk
Short Description (Unofficial) PHP SDK for the MPesa payment gateway by Vodacom Mozambique
License MIT
Please rate this library. Is it a good library?
Informations about the package mpesa-php-sdk
Install using Composer
Usage
The easiest way to use the API is by calling Codeonweekends\Mpesa\Mpesa
and accessing
the available transaction methods.
- Create an instance of
Codeonweekends\Mpesa\Mpesa
- Get the api context using the
getApiContext()
method - Set the public key and the api key on the context using
setPublicKey(YOUR_PUBLIC_KEY)
andsetApiKey(YOUR_API_KEY)
respectively
Example:
Create a C2B Transaction
View a Transaction Status
Transaction Reversal
Running Test Suite
- Open the file
phpunit.xml
and fill the<env/>
values with appropriate information - Run
e.g.
Further Improvements
- Documentation
- Laravel support
All versions of mpesa-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2 || ^8.0
phpseclib/phpseclib Version ^2.0
guzzlehttp/guzzle Version ~6.0
illuminate/support Version *
ext-json Version *
ext-openssl Version *
phpseclib/phpseclib Version ^2.0
guzzlehttp/guzzle Version ~6.0
illuminate/support Version *
ext-json Version *
ext-openssl Version *
The package codeonweekends/mpesa-php-sdk contains the following files
Loading the files please wait ....