Logo Lanfrica

joeotiza/ftth_ussd

Domaine:

digital infrastructure

Type de record:

software
Créateur:
joe
Hôte:
FTTH account management solution on USSD based on the Africa's Talking API. # PHP package for FTTH account management solution on USSD This is a PHP package for a FTTH account management solution on USSD based on the `Africa's Talking` API. This application has been developed on sandbox (testing) mode. To go live contact `Africa's Talking Ltd` on africastalking.com. ## Prerequisites For testing download `Africa's Talking` android app from Google Playstore or use the web interface at simulator.africastalking.com ## Installation This project needs composer to use phpspreadsheet to handle import and export of `.xlsx`/`.xls`/`.csv` files. - Run the following commands in terminal to install composer ``` (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/joseph/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" brew install php php -r "copy('getcomposer.org', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" ``` - Run the following commands to install phpspreadsheet ``` php composer.phar require phpoffice/phpspreadsheet ``` ## Configuration 1. Import the ftth_ussd.sql file into MySQL database. 2. Go to "account.africastalking.com". Create an account then click on the `Go to Sandbox App` button 3. In your sandbox account under USSD > Create Channel , pick a shared service code such as `*384*` and a channel such as 1100 i.e `*384*1100#` (Be sure to take a unique channel which is not taken already) 4. Configure your callback URL (the URL that points to your application) e.g example.com then click `Create channel`. This assumes you are working from a live server whose domain name is example.com. Replace the domain name with you …