Saturday, March 4, 2017

Need to Integrate a SMS gateway to my application provided by third party solution,

i am new to laravel 5.3 i need to integration a SMS gateway to my application, i have already purchased SMS credit from the third party solution provides, since they don't have package for laravel i have to include the library class manually, can anyone help me with this

This is the code i need to include in the laravel controller. how to include the external class sendsms.php in the controller..

<?php 
include 'sendsms.php';
$sendsms=new sendsms("http://api-alerts.solutionsinfini.com/v3/",'sms'
                      , "11XXXXXXXXXXX78", "SIXXXX");
$sendsms->send_sms("99XXXXXXXX", "message", 'http://www.yourdomainname.domain/yourdlrpage&custom=XX', 'xml');
$sendsms->schedule_sms("99XXXXXXXX", "message"
                     , "http://www.yourdomainname.domain/yourdlrpage&custom=XX", 'xml',
                      'YYYY-MM-DD HH:MM PM/AM');
$sendsms->unicode_sms("99XXXXXXXX","unicode message",
                      "http://www.yourdomainname.domain/yourdlrpage&custom=XX",'xml','1');
$sendsms->messagedelivery_status("99XXXXXX-X");
$sendsms->groupdelivery_status("99XXXXXX");

?>  



via Venki8

Advertisement