kazeeem/ussd-gateways

There is no license information available for the latest version (v1.0.0) of this package.

This is a library that gives you a preconfigured template of creating menus of various USSD gateways.

v1.0.0 2023-04-18 01:38 UTC

This package is auto-updated.

Last update: 2024-04-30 00:39:55 UTC


README

Latest Stable Version

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.