Coder Social home page Coder Social logo

alexpgates / felix Goto Github PK

View Code? Open in Web Editor NEW
12.0 7.0 6.0 168 KB

Simple group texting using Twilio and procedural PHP.

Home Page: http://alexpgates.com/blog/2014/07/group-texting-with-php-and-twilio

License: GNU General Public License v2.0

PHP 100.00%

felix's Introduction

Felix!

by @alexpgates

Here's a quick and dirty way to manage SMS groups using PHP and Twilio. This is handy for events like summer camps or other events when you want to get a message out to organizers / counselors quickly.

This code is a few years old, but it has been updated to use the latest Twilio PHP library.

Features

  • Onboarding flow for new members
    • Users join by texting anything to the number, then following the directions.
  • Members can leave the group by sending: -stop.
  • Members can change their nicknames by sending: -name (new nickname).
  • The group administrator get alerted when members join.
  • All messages are logged in the database.
  • Messages can contain up to 1600 characters.

Requirements

  • Twilio PHP library
  • A Twilio account with credits and a caller ID verified phone number.
  • PHP
  • MySQL database
  • A tolerance for procedural PHP

Setup

  • Get your account set up at Twilio and verify your number.
  • Point your SMS settings to the location of sms.php on your server.
  • Execute database_setup.sql to set up the required tables.
  • Fill in the necessary variables in settings.php.
  • Drop the Twilio PHP Library in the directory root and make sure the path at the top of sms.php is correct.
  • Send a text to your number and follow the directions to join the group.

To Do

  • This needs a better way for an admin to manage the users. Right now, you need to manage users directly in the database.
  • Yeah, it uses the depracated mysql_connect(). It should be updated to mysqli_connect() or pdo. (Updated to mysqli on 7-15-2014)

Screenshots

Join Flow

Use

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.