1. Go to this page and download the library: Download aimedidierm/intouchsms library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aimedidierm / intouchsms example snippets
use Aimedidierm\IntouchSms\SmsSimple;
/** @var \Aimedidierm\IntouchSms\SmsSimple */
$sms = new SmsSimple();
$sms->recipients(["250788750979","0738584462"])
->message("Hello world")
->sender("intouchSenderId")
->username("intouchUsername")
->password("intouchPassword")
->apiUrl("www.intouchsms.co.rw/api/sendsms/.json")
->callBackUrl("");
print_r($sms->send());
namespace App\Services;
use Aimedidierm\IntouchSms\SmsAbstract;
class Sms extends SmsAbstract
{
public function __construct()
{
parent::__construct();
//
}
public function configSender(): string
{
return "intouchSenderId";
}
public function configUsername(): string
{
return "intouchUsername";
}
public function configPassword(): string
{
return "intouchPassword";
}
public function configApiUrl(): string
{
return "www.intouchsms.co.rw/api/sendsms/.json";
}
public function configCallBackUrl(): string
{
return "";
}
public static function QuickSend($recipients, String $message, String $senderId = null)
{
$sms = new Sms();
$sms->
$sms = new Sms();
// first parameter is recipients and second one is message
$sms->
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.