Giter Club home page Giter Club logo

simpe-ussd-application's Introduction

Simpe-USSD-application

This is a simple USSD application written with Vanilla PHP, it allows users to do the following:

  • Register
  • Send Money
  • Withdraw Money
  • Check Balance

P.S: CODE PERFECTION WAS NOT THE GOAL OF THIS PROJECT BUT RATHER FULL FOCUS ON FUNCTIONALITY, DO NOT USE IN PRODUCTION.

How To Test

  • Run the project on Postman e.g http:localhost/ussd/index.php
  • The acceptable request method is POST
  • The following keys should be added to the "form-data"
    • sessionId
    • serviceCode
    • phoneNumber
    • text
  • Every menu option chosen should be typed into the text field. For menus that have sub-menus, separate the options or inputs with asterisks(*)

Screenshot 2023-04-08 at 9 01 47 AM

  • Here is an example of the request of a registered user who wants to check his/her account balance.

Screenshot 2023-04-08 at 9 05 12 AM

Screenshot 2023-04-08 at 9 07 14 AM

Screenshot 2023-04-08 at 9 07 37 AM

If you want to the system to send an SMS, create a file called "secrets.php" in the root folder and place your Afrikastalking API key in there and the sms shortcode using the following constants:

  • API_KEY
  • SMS_SHORT_CODE

Set the SEND_SMS constant in the Utility.php class to true.

simpe-ussd-application's People

Contributors

kazeeem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.