I have two questions.
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.
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.
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.
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.
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 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. ...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With