Sending and receiving SMS messages in PHP

I have two questions.

  • I want to send an SMS from a website in PHP to a user who provides information about his orders. I need the SMS to appear as "TD-COMPANY-NAME", as we usually get it from some major e-commerce websites. How do I achieve this? Any pointers on how to do this? I just turn around searching the Internet.

  • In addition, there are several other operators who will send SMS messages to the application in a specific format, which will be parsed, and the corresponding updates will be performed in the database. How to achieve this?

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

+4
source share
5 answers

Send and receive SMS messages in PHP

Check out the Nexmo and Twilio .

I used both. I think Twilio has a smaller learning curve. But Nexmo offers free incoming messages. So depending on your application, which can play a huge factor (for example, SMS voting system).

Both have excellent documentation and sample PHP code.

+7
source

If you are looking for a solution built on a server that sends and receives SMS with your own infrastructure (which, using GSM modems), you really need to take a look at SMS Server . It interacts with your application through spool directories (basically you write a formatted text file that you want to send in a certain directory, and the application takes care of the rest), it is easy to configure and quite reliable.

+1
source

How to overcome FrontlineSMS is also an excellent tool, and it is not exclusive for several countries, that is, it supports all countries. It also has good documentation and good support in the PHP POST and GET methods.

Here's the link: http://www.frontlinesms.com/

+1
source

You can write your own PHP code to send and receive SMS via GSM modems with a serial port. This will be much better than using SMS or Twilio gateways. In this case, you are completely dependent on them, because in case of interruption of their service, your business will also operate without any reason.

0
source

What you call TD-COMPANY-NAME is usually called SenderId or Source . We support it in all our API calls .

For example, this query:

 curl -X "POST" https://api.wavecell.com/sms/v1/amazing_hq/single \ -u amazing:1234512345 \ -H "Content-Type: application/json" \ -d $'{ "source": "AmazingDev", "destination": "+6512345678", "text": "Hello, World!" }' 

Results in: SMS with custom SenderId

As for the second part of your question, I see no problems using several different sources, until all of them are irreconcilable and authentic (do not try to imitate other trademarks).

0
source

All Articles