Compare the Market: Nobody’s lower priced for quality SMS Lowest Bulk SMS Prices Free Bulk SMS Software
text marketer reviews Text Marketer RSS feeds

PHP and SMS

Posted on November 25th, 2009 by Nick.


Categories: All SMS Gateway Documentation, Technical
Tags: ,

PHP is the very popular web scripting language, to make things easy for the PHP programmer we have provided some (almost!) plug and play  PHP code that easily integrates PHP with our SMS Gateway.

Simple Example of sending SMS with PHP

This class allows you to send SMS using PHP,  please feel free to modify at will. You just need the username and password from your account login as the constructor arguments. Download PHP 5 SMS API Class

Example:

$sms = new SendSMSXML("myUsername","myPassword");
/// send function args: mobile number, your message, the originator (sender id)
$sms->send("4477777777","my message","me");

As you can see there is nothing to it!

Take a look at the  more involved document describing how you can integrate PHP with the SMS short code service. This example uses a game where by you text in the number of sweets you think is in a jar. You then receive a response depending on how close you were.

Popularity: 6%






Related posts:

  1. The SMS Gateway
    How to use an SMS Gateway Continue reading →...
  2. PHP 5 SMS Send Class implementing listeners on our SMS Gateway
    Class Name: SendSMSNotifier This class is designed around the FREE Text Marketer SMS API, you need to sign up here...
  3. Text Marketer short code / txtUs API options
    Introduction The keyword on your system (on short code 88802) or your txtUs number can be used to “route” incoming...
  4. SMS Gateway API – Specification
    This blog post has been superseded with our website documentation It is recommended that you use the  RESTful version of the API which has largely superseded this document...
  5. PHP 5 Simple SMS send Class
    This blog post has been superseded with our website documentation 2 classes available in php 5, SendSMS and SendSMSXML (recommended) Class Name: SendSMS...
  6. Can I set the sender name, who the message is from?
    Yes. You can also set the sender name for your campaign; this is who the message is from and appears...
  7. How to use an SMS Gateway
    Our SMS Gateway is extremely powerful indeed. It allows companies to connect to our systems and send out messages 1...
  8. How to integrate our SMS Gateway API into your systems
    Introduction Adding SMS as a communication method to a system is often very useful, for instance you don’t have issues...
  9. How to use Quick Send to send an SMS Campaign
    How to use Quick Send to send an SMS Campaign Quick Send Quick Send allows you to send text messages...
  10. How can you benefit from our free SMS keyword and shortcode text response system?
    Ever seen a TV Ad’ that says, “Text BROCHURE to 69888 for more details”? Why do they do this instead...

Comments are closed.