PHP code example of swiftsmsgh / swiftsmsgh-api-sdk
1. Go to this page and download the library: Download swiftsmsgh/swiftsmsgh-api-sdk 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/ */
swiftsmsgh / swiftsmsgh-api-sdk example snippets
use Swiftsms\Swiftsmsgh;
use Swiftsms\Swiftsmsgh;
$api_token = "Enter Your API Token here";
$sender_id = "Enter your approved Sender ID here";
$client = new Swiftsmsgh\SwiftsmsghSMS($api_token, $sender_id);
$recipients = "233500000000,233540000000";
$message = "This is a test message";
$response = $client->send_sms($recipients, $message);