Skip to content

nylonthanh/twilio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twilio

SMS service meant to go into a larger project; built out with a factory design to enable dev to plug in a new SMS service less headaches. ie If you need to use something other than Twilio, it'll take less time to switch.

to run:

0 assumes you have a twilio account already with auth token and account 1 get the repo 2 edit the /App/Config/Config.php file and put in the:

    define('TWILIO_ACCOUNT_ID', '');
    define('TWILIO_AUTH_TOKEN', '');
    define('FROM_PHONE_NUMBER', '');
    define('CORS_DISABLED', FALSE);

3 /index.php is the client, so use this as an example to call the 'create' static method and the sendMessage() method.

4 target/to-phone number is set in index.php

5 from-phone number is from twilio. It will fail if you put a fake one in

todo: logging, tests, if one service fails use another (and log it)

About

PHP service; SMS service; with factory design to enable user to plug in a new SMS service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages