Skip to content

Barta (বার্তা)

The unified interface for every Bangladeshi SMS gateway. Send OTPs, marketing alerts, or notifications with a beautiful, fluent Laravel API.

Stop wrestling with gateway SDKs. Barta provides a unified API for all major Bangladeshi SMS gateways with built-in phone formatting, queue support, and Laravel Notifications integration.

14+ Gateways

SSL Wireless, eSMS, Infobip, Grameenphone, Banglalink, Robi, and more. Switch providers with a single config change.

Bulk SMS

Send to thousands of recipients in a single API call. Automatic chunking and rate limiting included.

Queue Ready

Dispatch SMS to background jobs for blazing fast response times. Redis, SQS, and database queues supported.

Laravel Notifications

Native barta channel for Laravel’s notification system. Send SMS just like emails.

BD Phone Validation

Automatic normalization to 8801XXXXXXXXX format. Invalid numbers are caught before hitting the API.

Extensible

Create custom drivers for any gateway with the simple AbstractDriver pattern.

Terminal window
# Install via Composer
composer require larament/barta
# Publish configuration
php artisan barta:install
use Larament\Barta\Facades\Barta;
Barta::to('01712345678')
->message('Your OTP is 1234')
->send();