Download the PHP package bitmarshals/instant-ussd without Composer
On this page you can find all versions of the php package bitmarshals/instant-ussd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bitmarshals/instant-ussd
More information about bitmarshals/instant-ussd
Files in bitmarshals/instant-ussd
Package instant-ussd
Short Description Library to help you rapidly develop and easily maintain your USSD applications.
License BSD-3-Clause
Homepage https://github.com/bitmarshals/instant-ussd
Informations about the package instant-ussd
InstantUssd
InstantUssd is a USSD development library meant to provide you with a set of tools to easily and quickly build your own USSD applications.
Goals
- Speed up USSD development
- Ease maintenance of USSD code
Features
- Minimal coding (Provide USSD menus as config)
- Automatic screen to screen navigation
- Out of the box validation of user inputs
- Ready solutions for complex USSD flows involving going back and forth, optional screens, looping set of screens, jumping from screen to screen and resuming timed-out USSD sessions
Installation
You will need PHP 5.6+ to install this package.
You must then modify your composer.json
file and run composer update
to include the latest version of the package in your project.
Or you can run the composer require
command from your terminal.
Once the package is installed the next step is dependant on which framework you're using.
Usage
Initialization
Instantiate Bitmarshals\InstantUssd\InstantUssd
passing in instant_ussd
config and your controller instance.
Retrieve an instance of Bitmarshals\InstantUssd\UssdService
from InstantUssd
. This service provides utilities for parsing, packaging and handling incoming USSD data.
Navigation Checks
Before proceeding further we need to run a few test to check if we should exit early, show home page (very first screen in a USSD flow) or navigate to the previous screen.
Exit Check
Home Page Check
Go Back Check
Process Latest User Response
With the navigation checks complete, we should now handle the most recent user response.
Retrieve Last Served Menu and Its Config
InstantUssd
keeps a history of the screens we've visited during the current session. Let's retrieve the menu we sent to our user and its config settings.
Validate Latest Response
Capture Validated Data
Show Next Screen
Sample Application
Check out InstantUssd App.
License
BSD 3-Clause License
Documentation
Please refer to our extensive Wiki documentation for more information.
All versions of instant-ussd with dependencies
zendframework/zend-db Version ^2.8.1
zendframework/zend-eventmanager Version ^2.6.3 || ^3.0.1
zendframework/zend-servicemanager Version ^2.7.6 || ^3.1.1
zendframework/zend-http Version ^2.5.4
zendframework/zend-validator Version ^2.9.2
guzzlehttp/guzzle Version ~6.0