Tutorial section - SMS

Send SMS using PHP

Sending SMS using the PHP programming language
Send SMS > PHP

PHP is a programming language and can be used to quickly and easily add SMS support for programmatically sending and receiving SMS messages. Use it for transactional messaging and notifications between your application and mobiles.

Code examples

There are a number of different APIs that can be used for sending and receiving SMS. APIs included in our tutorials that can be used for sending SMS using PHP are:

PHP requirements and resources

In addition to the requirements of the chosen API, the following are required to send SMS using PHP:

  • PHP - PHP programming/scripting language

Other languages covered in our tutorials that can be used for sending and receiving SMS include: Python, Java, C++, C#, Perl, Go, Node.js, Ruby

Using in production

Whether it is PHP or another language, you can send SMS and receive SMS between applications and mobiles for a wide range of uses with any of the trusted and reliable CPaaS services from Melrose Labs. Take a look at our Messaging, SMS gateway and Bulk SMS solutions, and sign-up for a Developer account on our Tyr SMS Gateway service to try us out.

We provide a wide range of CPaaS services and infrastructure to organisations, including cloud platforms that enable you to run your own SMS gateway.

Get in contact with us to find out more about CPaaS voice, messaging, video and identity from Melrose Labs.

Testing

For testing your application's SMS support when using the SMPP protocol, we recommend starting with the Melrose Labs SMSC Simulator service to simulate SMS message delivery to mobiles (MT SMS) and simulate SMS messages from mobiles (MO SMS). The SMSC Simulator supports SMPP v3.3, v3.4 and v5.

SMSC Simulator

For live testing and delivery to mobiles, use the reliable and dependable Melrose Labs Tyr SMS Gateway for A2P, P2A, bulk, wholesale and business SMS, text marketing and other uses. The Melrose Labs Tyr SMS Gateway supports REST and SMPP APIs.

Tyr SMS Gateway

Find out more...

Please provide your name.
Please provide a valid company name.
Please type your message.
Please provide a valid email address.