This is a simple php class file to send sms message using GreenWeb sms api
Example code for sending sms to single user
<?php
include_once "./SMS.php";
$sms = new SMS("YOUR SMS KEY");
$sms->setNumber('01878460662');
$sms->setContent("Test sms message");
$result = $sms->sendSms();
print_r($result);
?>
Example code for sending sms to multiple users.
<?php
include_once "./SMS.php";
$sms = new SMS("YOUR SMS KEY");
$sms->setNumbers(['01878460662']); //you have to call setNumbers and have to pass an array as argument
$sms->setContent("Test sms message");
$result = $sms->sendSms();
print_r($result);
?>
To run the script, enter the project url in browser
http://localhost/folder-name/yourfilename.php
If you have any feedback, please reach out to me at pranaycb.ctg@gmail.com