1. Go to this page and download the library: Download nikba/laravel-bulksms 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/ */
nikba / laravel-bulksms example snippets
use Nikba\BulkSms\Facades\BulkSms;
BulkSms::sendMessage('+447700900000', 'Hello World!');
use Nikba\BulkSms\Enums\Encoding;
use Nikba\BulkSms\Enums\RoutingGroup;
use Nikba\BulkSms\Facades\BulkSms;
$messages = BulkSms::message()
->to('+447700900000')
->from('MyBrand')
->body('Dobrá práce! Jak se máš?')
->encoding(Encoding::UNICODE) // or ->unicode()
->routingGroup(RoutingGroup::STANDARD)
->send();
foreach ($messages as $message) {
echo $message->id.' → '.$message->statusType;
}