PHP code example of kazeeem / ussd-gateways

1. Go to this page and download the library: Download kazeeem/ussd-gateways 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/ */

    

kazeeem / ussd-gateways example snippets


use Kazeeem\UssdGateways\Gateways\Africastalking;

$response = "Hello, welcome to Africastalking testing ground. What do you want to do today?\n";
$response .= "1. Send Money\n";
$response .= "2. Withdraw\n";
$response .= "3. Check Balance\n";
$response .= "4. Change Language\n";

echo startUserPrompt(Africastalking::class, $response);