Skip to content

papamarfo/ussd-starter-kit

Repository files navigation

ussd-starter-kit

A sample project created with laravel-ussd

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Installing

Please run the following commands to setup your development env up.

# clone this repository
git clone https://github.com/elixirsolutions/ussd-starter-kit.git

# change directory
cd ussd-starter-kit/

# install the project's dependencies using Composer
composer install

# make a copy of the .env.example to configure the application for your local environment
# linux/unix
cp .env.example .env

# windows
copy .env.example .env

# generate your application encryption key using 
php artisan key:generate

Running the application

You can use the development server the ships with Laravel by running, from the project root:

php artisan serve

You can visit http://localhost:8000 to see the application in action.

Testing the application

Browser

http://localhost:8000/?msisdn=0544909356&network=mtn&session_id=12345&msg=1

cURL

curl -H "Content-Type: application/json" \
     -X GET \
     -d '{"msisdn":"0544909356", "network":"mtn", "session_id":"12345", "msg":"1"}' \
     http://localhost:8000

Enjoy!!!

Reseting the application

Run the following artisan command if you are using the default cache store

php artisan cache:clear

Documentation

You'll find the documentation on https://sparors.github.io/ussd-docs.

About

A sample project created with laravel-ussd

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages