Skip to content

ATDevOutreach/TwoWaySMSManagement-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two Way SMS Management Using Africa's Talking API's

INTRO

The RESTful API

We use the minimal Lumen as a drop-in replacement for Laravel. We also make use of HHVM instead of PHP 7.X as a matter of experimentation.

The ORM for our Database

Medoo is Light PHP Database framework that you can use with various databases for ORM work.

Database

MariaDB is a fork of MySQL DB and is useable as a complete drop-in replacement.

Docker Env

We use docker to manage our apps environment. And docker-compose to manage our containers as a network.

APP

Workflow

We are building a 2 way SMS app running on Lumen Framework.

  1. A user sends an SMS to a shortcode 20414(replace with your code)
  2. The App receives a HTTP POST from Africa's Talkings API and dumps the POST to DB
  3. The App responds with an SMS to the Sender

RESOURCES

Composer Commands

  • Download the Lumen installer using Composer
$ composer global require "laravel/lumen-installer"

The Docker Commands

  • Build
$ docker build -t hhvmlaravel:1.0 .
  • Run
$ docker run -d -it --name hhvm -p 8990:80 hhvmlaravel:1.0
$ docker exec -it hhvm bash

-Logs

$ docker logs --tail hhvm
  • Ship
$ docker login
$ docker push grahamingokho/hhvmlaravel:1.0 .

About

Managing HTTP POST SMS traffic From AT on your APP and persisting the traffic to storage. [WIP]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages