PHP code example of kssadi / sslwirelesssms
1. Go to this page and download the library: Download kssadi/sslwirelesssms 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/ */
kssadi / sslwirelesssms example snippets
return [
'api_token' => env('SSLWIRELESS_API_TOKEN', ''),
'sid' => env('SSLWIRELESS_SID', ''),
'domain' => env('SSLWIRELESS_DOMAIN', 'https://smsplus.sslwireless.com'),
'message_type' => env('SSLWIRELESS_MESSAGE_TYPE', 'EN'),
];
use KsSadi\SSLWirelessSMS\Facades\SSLWirelessSMS;
$response = SSLWirelessSMS::sendSingleSms('1234567890', 'Hello, world!', 'TX123');
use KsSadi\SSLWirelessSMS\Facades\SSLWirelessSMS;
$phoneNumbers = ['1234567890', '0987654321'];
$response = SSLWirelessSMS::sendBulkSms($phoneNumbers, 'Hello, world!', 'TX123');
use KsSadi\SSLWirelessSMS\Facades\SSLWirelessSMS;
$messageData = [
[
'phone_number' => '1234567890',
'message' => 'Hello, John!',
"sms_id" => uniqid() //must be unique
],
[
'phone_number' => '0987654321',
'message' => 'Hello, Jane!',
"sms_id" => uniqid() //must be unique
]
];
$response = SSLWirelessSMS::sendDynamicSms($messageData);