How to use ‘smsgupshup’ SMS Service In php project?

smsgupshup SMS Service In php


Smsgupshup of SMS service enables your messages to reach both smartphones and feature phones on any network worldwide. I added one function to send the sms using 'smsgupshup' service. To send sms, you have to get the register and get the api user id, api user password.
I used this function in yii framework and php project.

public static function send($data,$mobile,$template)

    // add the message
    // Add the message type, api user id, api password, and message mask word

    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $curl_scraped_page = curl_exec($ch);

    //$curl_scraped_page="success | 91123456789 | 22***************-29***************";
    return $curl_scraped_page;

  • Gaurav Kumar

    Hi ,
    I want response as a json please help……