Skip to content

papamarfo/ussd-nsano-example

Repository files navigation

ussd-nsano-example

A sample project created with laravel-ussd and nsano

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/yawmanford/ussd-nsano-example.git

# change directory
cd ussd-nsano-example/

# 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&UserSessionID=12345&msg=1

cURL

curl -H "Content-Type: application/json" \
     -X GET \
     -d '{"msisdn":"0544909356", "network":"mtn", "UserSessionID":"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 and nsano

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages