Connect your Application with bulk sms in Tanzania using Beem

composer require epmnzava/bongolivesms-laravel
Epmnzava\BongolivesmsLaravel\BongolivesmsLaravelServiceProvider::class,
'BongolivesmsLaravel'=>Epmnzava\BongolivesmsLaravel\BongolivesmsLaravelFacade::class,

How to use the library

Usage

Sending to one msisdn at a time <?php
use BongolivesmsLaravel;
class DashboardController extends Controller
{
//
public function runSms(){//assuming $recipient_msisdn is your receipient number
//we need to change it from 0XXXX to 255XXX
if(substr($recipient_msisdn, 0, 1)==0){
$msisdn = ltrim($recipient_msisdn, "0");
$recipient_msisdn="255"."".$msisdn;
}else{}
$response=BongolivesmsLaravel::send__single_recipient($source_addr,$message,$recipient_msisdn);
}
Sending multiple msisdn at one by passing an array of numbers<?php
use BongolivesmsLaravel;
class DashboardController extends Controller
{
//
public function runSms(){//assuming $recipient_msisdn is your receipient number
//we need to change it from 0XXXX to 255XXX

$recipient_array=["255679079774","2556789909"];
$response=BongolivesmsLaravel::send__multiple_recipient($source_addr,$message,$recipient_array);
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store