Download the PHP package larament/barta without Composer
On this page you can find all versions of the php package larament/barta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larament/barta
More information about larament/barta
Files in larament/barta
Package barta
Short Description Barta is a Laravel package designed to integrate popular Bangladeshi SMS gateways seamlessly.
License MIT
Homepage https://github.com/iRaziul/barta
Informations about the package barta
Barta - Laravel package for integrating Bangladeshi SMS gateways
Barta provides a clean, expressive way to send SMS from Laravel applications using Bangladeshi gateways. It gives you a single API for transactional messages, OTP delivery, alerts, queued sends, and notification-based messaging.
The package is designed to feel native in Laravel projects while keeping gateway-specific concerns isolated to drivers and configuration.
Key Features
- Multiple Gateways — Seamlessly switch between SMS providers
- Bulk SMS — Send to multiple recipients in a single call
- Queue Support — Dispatch SMS to background jobs
- Laravel Notifications — Native integration with Laravel's notification system
- BD Phone Formatting — Automatic phone number normalization to
8801XXXXXXXXXformat - Extensible — Create custom drivers for any SMS gateway
Supported Gateways
logdriver for local development and testing- Most Bangladeshi SMS gateways are supported
Full gateway list and setup instructions are available at barta.larament.com/gateways.
Requirements
- PHP 8.2 or higher
- Laravel 11 to 13
Installation
Install via Composer:
Optionally, you can run the install command:
Quick Start
Set your default driver in .env:
Then send your first message:
Send through a specific gateway:
Queue a message for background delivery:
Send to multiple recipients:
[!TIP] Use the
logdriver during local development and automated tests to avoid sending real SMS.
Laravel Notifications
Barta integrates with Laravel's notification system through the barta channel:
Route notifications to a phone number on your notifiable model:
Learn more at barta.larament.com/advanced/notifications.
Phone Number Formatting
Barta automatically normalizes Bangladeshi mobile numbers into 8801XXXXXXXXX format.
| Input | Normalized |
|---|---|
01712345678 |
8801712345678 |
+8801712345678 |
8801712345678 |
Documentation
The full documentation lives at barta.larament.com.
- Getting started: barta.larament.com/usage/basic-usage
- Gateway configuration: barta.larament.com/gateways
- Notifications: barta.larament.com/advanced/notifications
Testing
Use the log driver during testing to avoid sending real SMS.
Changelog
See CHANGELOG.md for recent changes.
Contributing
See CONTRIBUTING.md for details.
Security
Report vulnerabilities via our security policy.
Credits
- Raziul Islam
- All Contributors
License
MIT License. See LICENSE.md.
Made with ❤️ for the Bangladeshi Laravel Community
All versions of barta with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0