tnmdev/ussd-simulator

A simulator for TNM USSD applications

dev-master 2020-05-02 14:40 UTC

This package is auto-updated.

Last update: 2024-04-29 04:21:12 UTC


README

This is a Laravel CLI simulator for USSD apps that are built for TNM USSD, or any apps built with the framework https://github.com/saulchelewani/ussd-adapter

With this, you can run a USSD app in command-line, whether in development or on live environment.

How to install

composer require tnmdev/ussd-simulator

How to use

php artisan ussd:simulate <url> <phone>

This command reaches your application using the url passed as the first argument. All the response coming on the app depends on the responses of your application.

php artisan ussd:simulate https://your-domain.com/api/ussd 265888800900

You can also test your apps in development

php artisan ussd:simulate http://ussd-app.test/api/ussd 265888800900

Even running on localhost

php artisan ussd:simulate http://localhost:8000/api/ussd 26588880900