Skip to content

tishma/h-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Notifications Demo

##Purpose The purpose of this repo is to show possible OO design of a simple (SMS and Email) notification system.

Features

The NotificationDemo is an abstraction layer that can help an application developer to use Sms and Email providers of choice by wrapping them into uniform interfaces (EmailServiceWrapper, SmsServiceWrapper and AbstractNotification).

Examples

Example implementations can be found in examples directory, along with example.php script that can be run from command line.

The implementation of ServiceWrappers is intentionally hard-coded to write 'sent' messages to /tmp/sendserviceslog.txt, so running requires linux or Mac OS X.

The example successfully runs on PHP 5.5.18 and Mac OS X 10.10.4

About

code demonstration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages