PHP code example of delfimcelestino / mpesa-connect-php
1. Go to this page and download the library: Download delfimcelestino/mpesa-connect-php 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/ */
delfimcelestino / mpesa-connect-php example snippets
pesaConnectPhp\Mpesa;
// Substitua pelos valores reais
$mpesa = new Mpesa('your-public-key', 'your-api-key', 'your-service-provider-code', 'sandbox');