Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send and receive SMSes in PHP

Tags:

php

sms

I have two questions.

  1. I want to send SMSes from a web-site in PHP to the user giving information about his orders. I need an SMS to be displayed as 'TD-COMPANY-NAME' as we normally get it from some big e-commerce web-sites. How do I achieve this? Any pointers how this is done? I am just going round and round on googling.

  2. Also, there are several other operators who will be sending SMSes to the application in a specific format which will get parsed and respective updates will be done in the database. How do I achieve this?

Note: This application is designed to work in India locally. And the backend is PHP and MySQL.

like image 431
mtk Avatar asked Jun 28 '12 15:06

mtk


People also ask

How do I send SMS using PHP script?

This text is displayed in your browser. Once your PHP script is ready for accepting incoming messages, you should install and configure the SMS gateway. The SMS gateway will pass incoming SMS messages to your PHP script using HTTP requests, this is why we call this configuration HTTP-SMS Gateway configuration.

How to send and receive SMS using HTTP request?

download SMS Gateway API ( Play store) which is a free app that you can use to send and receive messages using HTTP requests. here is a PHP example from their site. Show activity on this post.

What are the best PHP modules for sending SMS messages?

Today, many services that enable creating modules for sending SMS messages to different individual sites or systems are based on PHP. Let’s consider the website modules for creating codes or sending SMS messages using popular services: Nexmo SMS Messaging, Twilio SMS, and RapidAPI.

How to send SMS from Twilio to PHP?

How to send SMS in PHP? 1 Send SMS using Twilio SMS API. In the above code, just provide your own Twilio SID, Twilio token, the number that you will get from Twilio. 2 Send SMS using Nexmo SMS API. ... 3 Use MSG91 SMS API. ... 4 Using Textlocal SMS API to send SMS in PHP. ...


Video Answer


1 Answers

Send and receive SMSes in PHP

Check out Nexmo and Twilio.

I've used both. I think Twilio has a shallower learning curve. But Nexmo offers free incoming messages. So depending on your application, that could play a huge factor (for example, an SMS voting system).

Both have excellent documentation and PHP code samples.

like image 134
Jason McCreary Avatar answered Sep 30 '22 14:09

Jason McCreary