Company
Date Published
Author
Rahim Sonawalla
Word count
516
Language
English
Hacker News points
None

Summary

A simple SMS voting system can be created using PHP and Twilio's SMS API in just a few minutes, making it suitable for larger events where attendees with smartphones are not the only option. To start, a Twilio account and a web server running PHP 5 or higher are required, along with storage for votes which can be achieved by using SQLite and a thin database class. The system also includes functions to add teams to the database, save votes, and retrieve team information. When incoming SMS messages are received through Twilio's API, they are handled by saving the data to the database. Once votes have been cast, displaying the results involves querying the database and showing the vote count.