How to Send SMS With Paysify sms gateway


Hello friends today we will discuss about how to send sms with paysify sms gateway.

Paysify  is the best and simple sms gateway for sending sms with php

Step1-create a account on  https://paysify.com/ website
Step2-after login in you will get your api keys  copy your api keys and paste it in following code

Code-

<?php
         
                function send_sms($senderid,$number,$message,$route){
                $message = urlencode($message);
                $api_key = "YOUR_API_KEY";
                $url = 'https://api.paysify.com/send_sms?api_key='.$api_key.'&sender_id='.$senderid.'&number='.$number.'&message='.$message.'&route='.$route.'';
                $ch = curl_init();
                curl_setopt($ch, CURLOPT_URL, $url);
                curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                $result = curl_exec($ch);
                $response = json_decode($result,true);
                curl_close($ch);
                return $response;
                }
         
              $data = send_sms("PAYSFY","enter mobile number","enter  msg here!","ROUTE_1_OR_4");
              echo "<pre>";
              print_r($data);
         
              ?>

Previous
Next Post »
Thanks for your comment