Sending SMS (Short Message Service) with PHP application is done for multiple purposes. For example, many security enhancements are integrating multi-factor authentication system where you can additionaly identify user by mobile device, retrieve forgotten passwords or similar. Other common usages are sending marketing messages, or notifing users about different events and similar.
The diagram below explains a simplified SMS sending flow where PHP application communicates with a SMS gateway. Gateway converts and forwards received data to SMS center (SMSC). SMSC routes data to mobile device (end user).
Most common and simple to integrate usage in PHP applications is using an SMS API.
Another, less common and less stable option to send SMS is using an email from particular carrier. SMS is sent by sending an email to certain address with predefined email data.
- gnokii - Allows you to communicate with the phone.
- Kannel - Open Source WAP and SMS gateway.
- Nexmo - API for sending text messages.
- PHP Classes - Several solutions to send SMS with PHP.
- SMS Gateway
- SMS Gateway Android - Turn your Android phone into a SMS Gateway.
- PlaySMS - Free and Open Source SMS Gateway written in PHP based on Gammu SMSD service.
- Twillio - API for sending text messages.
- List of free email to SMS carriers
- Tutorials:
- Envato Tuts+ - How to Send Text Messages with PHP.
- SitePoint - Implement Two-way SMS with PHP.
