Skip to main content
00:00/00:00
Lecture 53 of 153

Adding a constants file – util.php file

Download Course (Free)

Course Content

0 / 153 completed
Section 1: Course Introduction4 videos

Skills and tools

3m

Which programming language do you need

2m

USSD and SMS course preview

18m

USSD and SMS course outline

19m
Section 2: Introduction to USSD and SMS Applications9 videos

Chapter 2 outline

4m

USSD Handling or signaling

9m

What is USSD, why USSD, USSD and SMS compared

18m

Types of SMS

6m

Length of USSD sessions

7m

Benefits and Drawbacks of USSD Applications

10m

Options available to building USSD application

22m

Uses or Applications of USSD Apps

5m

The Applications we Will Build in this Course – Mobile Money App

21m
Section 3: Introduction to PHP programming language and HTTP protocol22 videos

Chapter 3 preview

5m

Setting up Postman

12m

Setting up Apache webserver and MySQL DBMS using XAMPP

14m

PHP variables and data types

4m

PHP functions

8m

PHP functions - substr

4m

PHP functions – count

1m

PHP functions – array shift

5m

PHP functions – array slice

7m

PHP functions – array merge

2m

PHP functions – explode

4m

PHP functions – array search

6m

PHP functions – join

2m

PHP functions – array splice

6m

PHP POST and GET HTTP methods

12m

PHP functions – unset

3m

Object Oriented Programming PHP (classes, objects member variables) – Part 1

31m

Object Oriented Programming PHP (classes, objects member variables) – Part 2

21m

PHP, PDO and MySQL Database – Connecting to database and handling Transactions

24m

PHP’s hashing API – password hash and password verify

8m

Understanding HTTP protocol structure

12m

PHP functions – str replace

5m
Section 4: Building and Testing USSD Application Menu31 videos

Building and testing USSD menus chapter preview

3m

Factors to consider when choosing USSD gateway aggregator

27m

Designing our Application Database – Part 1

16m

The Application USSD Menu

21m

Designing our Application Database – Part 2

6m

Two ways of consuming an API

3m

Creating the entry point to our USSD and SMS application

8m

Setting up in Ngrok

16m

Creating a USSD service code and adding a callback URL

13m

Exploring USSD aggregator

40m

Testing your first USSD application

16m

How to track your USSD sessions and session errors

13m

Restructuring app entry point file and the Menu class

28m

Understanding the source code for your first USSD application

23m

Adding the USSD main menu

26m

Completing the logic for the application entry point file

32m

Testing the USSD register menu

5m

Adding a constants file – util.php file

12mNow Playing

Completing the USSD register menu

31m

Testing the send money menu

9m

Testing the USSD withdraw menu

3m

Completing the check balance menu

8m

Testing the USSD check balance menu

1m

Completing send money menu

58m

Testing USSD menus using Postman

19m

Completing the ‘Main menu’ USSD menu

15m

Completing the withdraw money menu

34m

Designing ‘Go back’ and go to ‘Main menu’ USSD navigation

22m

Testing the ‘Go back’ and ‘Main menu’ on Postman

21m

Completing the ‘Go back’ USSD menu

16m

You can use Finite state Machine to create the menu

21m
Section 5: Linking application functionality or logic to USSD Menus30 videos

Linking application Logic to USSD menu chapter preview

3m

Establishing a database connection

20m

Wiring user registration logic to USSD menu

51m

Designing the User class

25m

Completing the register user logic

41m

Testing user registration from end to end

14m

Replay USSD menu for invalid menu option

15m

Handling invalid menus instead of ending user session

6m

Removing invalid menu options from user USSD string

50m

Testing the invalid menu option functionality

9m

Other locations where you will handle invalid input menu

10m

Persisting user invalid menu option in a database

36m

Completing check user wallet balance and user PIN correctness

18m

You can store invalid menu options in in-memory databases such as Redis instead

5m

Adding country code to user receiver phone number

11m

The structure of the Transactions class

22m

Removing a runtime syntax error in our code

14m

Testing send money feature from end-to-end

14m

Send money logic

25m

Test the check balance feature

2m

Wiring check balance logic with check balance menu

19m

How do we withdraw cash

7m

Structure of the Agent class

6m

Completing withdraw cash logic

11m

Testing the withdraw feature

15m

Wiring send money logic to send money menu

1h 30m

Testing the working application with simulator instead of Postman

7m

Receiving USSD notifications in your server

13m

Wiring withdraw cash logic to withdraw cash menu

55m

Implementing USSD notifications feature

22m
Section 6: Adding SMS functionality to the USSD application38 videos

Adding SMS functionality chapter preview

5m

Generating an API KEY for API access

3m

Exploring AT SMS products

20m

Exploring ‘Sending SMS from a short code’ API docs

9m

Creating a short code

4m

Setting a callback URL for incoming messages

5m

Testing logic for user registered via SMS shortcode

11m

User registered via SMS can check wallet balance via USSD

2m

Testing callback URL script using Postman

6m

Registering a user via SMS shortcode

16m

Sending SMS from a short code by consuming REST API via Postman

16m

Installing composer

12m

Exploring receiving an SMS to a Short Code API reference

18m

Installing AT PHP SDK via Composer

10m

Exploring AT gateway SDKs

27m

Testing ‘send user wallet balance as SMS’ from a short code

2m

Designing SMS class and 'sendSMS' method

39m

Connect sendSMS logic to checking user wallet balance in USSD

30m

Creating a sender ID in the USSD and SMS gateway

6m

Send user wallet balance as SMS a Branded SMS

7m

Sending bulky SMS

19m

Premium SMS or content

24m

Creating a subscription product

6m

Adding a subscription product callback URL

4m

Two-way SMS communication using a short code

21m

The subscriber table in our database

5m

Add a unique constraint to 3 columns in subscriber table

4m

More function in the Sms class

14m

Exploring premium SMS or content docs

40m

Completing subscribing and unsubscribing users function logic

22m

Wiring the premium SMS callback URL script to the SMS class logic

11m

Testing subscribe and unsubscribe to premium SMS logic

8m

Sending premium SMS or content

23m

Completing the sendPremiumSms function logic

39m

Testing fetch user subscription functionality

3m

Subscribing users with checkout token functionality

37m

Fetching user subscriptions from gateway

29m

Wiring user subscription with checkout token

15m
Section 7: Moving from SANDBOX environment to LIVE environment15 videos

Moving app from sandbox to live environment chapter preview

5m

Common adjustments when moving from sandbox to live environment

9m

Requirements for Premium SMS Shortcode Request

5m

Requirements for USSD Service Code Request

10m

Requirements for sender ID or branded SMS Request

2m

Requirements for Two-Way SMS Shortcode Request

2m

Test INVALID ENTRY – Live environment

2m

Test user registration via USSD – Live environment

12m

Explore AT’s live environment

24m

Test user registration via SMS shortcode – Live environment

8m

Test Go Back and Go to Main Menu – Live environment

4m

User subscribes to a premium service from mobile phone – Live environment

12m

User subscribes to a premium service from mobile phone – Live environment

8m

User subscribes to a premium service from mobile phone - Freeze time

4m

User subscribes to a premium service from mobile phone – Live environment

5m
Section 8: Monetizing USSD and SMS Applications4 videos

Monetizing USSD and SMS skills chapter preview

5m

USSD SMS and Banking

9m

News premium SMS application

6m

How to monetize your USSD and SMS skills

14m