Installation
Get Barta up and running in your Laravel application in just a few minutes.
Requirements
Section titled “Requirements”- PHP 8.2 or higher
- Laravel 11.x or 12.x
- Composer for package management
Step 1: Install via Composer
Section titled “Step 1: Install via Composer”composer require larament/bartaStep 2: Run the Install Command
Section titled “Step 2: Run the Install Command”php artisan barta:installThis publishes the config/barta.php configuration file.
Step 3: Configure Your Gateway
Section titled “Step 3: Configure Your Gateway”Add your SMS gateway credentials to .env:
BARTA_DRIVER=ssl
BARTA_SSL_TOKEN=your-api-tokenBARTA_SSL_SENDER_ID=your-sender-idStep 4: Verify Installation
Section titled “Step 4: Verify Installation”use Larament\Barta\Facades\Barta;
// Use 'log' driver to test without sending real SMSBarta::driver('log') ->to('01712345678') ->message('Hello from Barta!') ->send();Check storage/logs/laravel.log to verify the message was logged.