Download the PHP package isaacsichangi/mpesareceiptapi without Composer
On this page you can find all versions of the php package isaacsichangi/mpesareceiptapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download isaacsichangi/mpesareceiptapi
More information about isaacsichangi/mpesareceiptapi
Files in isaacsichangi/mpesareceiptapi
Download isaacsichangi/mpesareceiptapi
More information about isaacsichangi/mpesareceiptapi
Files in isaacsichangi/mpesareceiptapi
Vendor isaacsichangi
Package mpesareceiptapi
Short Description This is a library to generate a pdf receipt for an mpesa transaction whichh can be sent as a link via sms or email to the customer.It can be integrated with the official safaricom/mpesa api
License GPL-3.0
Package mpesareceiptapi
Short Description This is a library to generate a pdf receipt for an mpesa transaction whichh can be sent as a link via sms or email to the customer.It can be integrated with the official safaricom/mpesa api
License GPL-3.0
Please rate this library. Is it a good library?
Informations about the package mpesareceiptapi
MPESA RECEIPT API PHP
This is a library to generate a pdf receipt for an mpesa transaction which can be sent as a link via sms or email to the customer.It can be integrated with the official safaricom/mpesa api.
REQUIREMENTS
- PHP >=5.4.0
INSTALLATION
composer require isaacsichangi/mpesareceiptapi:1.0.0
HOW TO USE
require_once ('vendor/autoload.php');
//create mpesa receipt object
$mpesa = new MpesaReceiptGenerator("Bob Collymore", 3000, "0724XXXXXX", "MPJ54C33P", "Company XYZ", "https://www.companyxyz.com/");
try {
//generate receipt and return path of pdf receipt which can be sent as a link via sms or email message
$path = $mpesa->generateReceipt();
//view path
echo $path;
//handle exception
} catch (\Picqer\Barcode\Exceptions\BarcodeException $e) {
}
CREDITS
Isaac Sichangi - [email protected]LIVE DEMO
Send 10ksh to MPESA till number 564305 to see a sample receiptAll versions of mpesareceiptapi with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
setasign/fpdf Version 1.8.1
picqer/php-barcode-generator Version ^0.2.2
setasign/fpdf Version 1.8.1
picqer/php-barcode-generator Version ^0.2.2
The package isaacsichangi/mpesareceiptapi contains the following files
Loading the files please wait ...