kazeeem / ussd-gateways
This is a library that gives you a preconfigured template of creating menus of various USSD gateways.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kazeeem/ussd-gateways
Requires (Dev)
- phpunit/phpunit: ^9.6
README
This package provides convenient template or start for creating USSD menu for different kinds of USSD Gateways - The following are the current USSD Gateway this library supports
- Africastalking (Kenya)
- Arkesel (Ghana)
Install
You can install the package via composer or by downloading the source
Via Composer
The recommended way to install the package is with Composer.
composer require kazeeem/ussd-gateways
Usage
To use Africastalking, check below for guideline.
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);
The guideline for Arkesel is in progress, more updates are coming soon.