The Laravel / PHP SDK for Movetech Solutions' Bulk SMS API (Movesms). See their Bulk SMS API for more details.
You can install the package via composer:
composer require savannabits/movesms
- username - Your account Username
- api_key - Your API Key
- sender - Your Sender ID
- to - Your Recipients separated by commas
- message - Your Text Message
- msgtype - Type of the message (use 5 for plain sms)
- dlr - Type of Delivery Report(use 0 for no delivery Report)
$username = "YOUR MOVETECH USERNAME";
$senderId = "YOUR MOVETECH SENDER ID";
$apiKey = "YOUR MOVETECH API KEY";
$recipients = ["+254xxxxxx"]; //Array of recipient phone numbers in international format
$message = "Hello World! Here is my message.";
$res = Savannabits\Movesms\Movesms::init($username,$apiKey, $senderId)
->to($recipients)
->message($message)
->send();
// Returns a php object with the following format:
$res = [
"success" => true, //boolean
"message" => "Message Sent:1701" // Or the error in case success = false
];
$scheduleAt = '2021-04-24 14:04:00'; // Time in the format Y-m-d H:i:s
$res = Savannabits\Movesms\Movesms::init($username,$apiKey, $senderId)
->to($recipients)
->message($message)
->sendLater($scheduleAt);
$res = Savannabits\Movesms\Movesms::checkBalance($apiKey);
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email maosa.sam@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.