1. Go to this page and download the library: Download sslwireless/sslwireless-sms 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/ */
sslwireless / sslwireless-sms example snippets
lWireless\SslWirelessSms;
// username, password, sid provided by sslwireless
$SslWirelessSms = new SslWirelessSms('username','password', 'sid');
// You can change the api url if needed. i.e.
// $SslWirelessSms->setUrl('new_url');
$output = $SslWirelessSms->send('123456789','This is a test message.');
print_r($output);
use SslWireless\SslWirelessSms; // Use the installed package
class SomeController extends Controller
{
public function someFunction()
{
// username, password, sid provided by sslwireless
$SslWirelessSms = new SslWirelessSms('username','password', 'sid');
// You can change the api url if needed. i.e.
// $SslWirelessSms->setUrl('new_url');
$output = $SslWirelessSms->send('123456789','This is a test message.');
dd($output);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.