PHP Incoming SMS API

Integrate Incoming SMS API using PHP

This is just an example code for receiving Incoming SMS data using PHP, please make sure to sanitize data and other security aspects at the time of real development.

PHP Incoming SMS API

Sample scripts are provided just for reference only, do not develop using the same code.

Download Text File

You can also download from Github

You can also download from Sourceforge

Read more about Receive Incoming SMS Integration API

    //Save this file as incoming_sms.php
    //If you are planning to insert this data in your database, then create a database connection file and include the file name as shown below.
    //ofcourse uncomment the following if you have that file
    //We send out various information such as circle, operator, etc.,
    //2 important parameters are Recepient Phone Number and Message
    //So you can just grab those 2 important parameters as shown below.
    //If $_GET is not working then try $_REQUEST
    $incoming_sms_no = $_GET['phonecode']; //Short code or Long Code number [OPTIONAL]
    $incoming_sms_keyword = $_GET['keyword']; //Short code or Long Code Keyword such as MYCOMPANY [OPTIONAL]
    $recepient_mobile = $_GET['phoneno'];
    $recepient_message = $_GET['content'];
    $recepient_circle = $_GET['location']; //Recepient's Circle or Location [OPTIONAL]
    $recepient_operator = $_GET['carrier']; //Recepient's Operator Name such as Idea, Airtel [OPTIONAL]
    //Now you can print all the received data or insert it in your database.
    echo $incoming_sms_no;
    echo "<br />";
    echo $incoming_sms_keyword;
    echo "<br />";
    echo $recepient_mobile;
    echo "<br />";
    echo $recepient_message;
    echo "<br />";
    echo $recepient_circle;
    echo "<br />";
    echo $recepient_operator;
    echo "<br />";
    //If you are planning to capture in the database, then store the values to your database table

Go Back! SMS Developers API

Save this interesting page on your Favorite Social Media

Premium Bulk SMS Gateway

SMS Pricing

Receive a Call


SMS Business Opportunities

Bulk SMS Know-how

Convinced? Get an estimate. Contact Now!