PHP code example of brunoadul / mpesa
1. Go to this page and download the library: Download brunoadul/mpesa library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
brunoadul / mpesa example snippets
'providers' => [
// Other service providers...
Brunoadul\Mpesa\Providers\MpesaServiceProvider::class,
],
bash
php artisan vendor:publish --provider="Brunoadul\Mpesa\Providers\MpesaServiceProvider" --tag=mpesa-assets
php artisan vendor:publish --provider="Brunoadul\Mpesa\Providers\MpesaServiceProvider" --tag=mpesa-config
bash
php artisan cache:clear
php artisan config:clear
php artisan view:clear