Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
barta-development
barta-development
larament/barta
claude-code
sms
sms api
sms provider
sms gateway
bangladesh
sms sender
SMS Service
sms notification
barta
sms gateway bangladesh
sms api bangladesh
sms service bangladesh
sms provider bangladesh
sms notification bangladesh
sms sender bangladesh

Integrate Barta package for sending SMS via Bangladeshi gateways.

Install
php artisan boost:add-skill larament/barta

Save this content to: .claude/skills/barta-development/SKILL.md

# Barta Development

## When to use this skill

Use this skill when you need to send SMS, integrate SMS-based notifications, or configure SMS gateways in a Laravel application using the Barta package.

## Core Usage

### Sending SMS immediately

```php
use Larament\Barta\Facades\Barta;

$response = Barta::to('01700000000')
    ->message('Hello from Barta!')
    ->send();

if ($response->success) {
    // SMS sent
}
```

### Queuing SMS

```php
Barta::to(['01700000000', '01800000000'])
    ->message('Bulk update')
    ->queue();
```

### Using a specific driver

```php
Barta::driver('ssl')
    ->to('01900000000')
    ->message('Direct SSL message')
    ->send();
```

## Notification Integration

Define the `toBarta` method in your notification class:

```php
use Larament\Barta\Notifications\BartaMessage;

public function toBarta($notifiable)
{
    return new BartaMessage("Your security code: 987654");
}

// Optional: specify driver per notification
public function bartaDriver()
{
    return 'mimsms';
}
```

## Standardized Phone Numbers

Barta formats numbers automatically. All these inputs result in `8801700000000`:
- `01700000000`
- `8801700000000`
- `+8801700000000`
- `017-00000000`

## Configuration

Publish config: `php artisan barta:install`

Key settings in `config/barta.php`:
- `default`: The driver used when `driver()` is not called.
- `drivers`: Gateway-specific credentials (API keys, tokens, sender IDs).
- `request`: Global timeout and retry settings.

Barta Development

When to use this skill

Use this skill when you need to send SMS, integrate SMS-based notifications, or configure SMS gateways in a Laravel application using the Barta package.

Core Usage

Sending SMS immediately

use Larament\Barta\Facades\Barta;

$response = Barta::to('01700000000')
    ->message('Hello from Barta!')
    ->send();

if ($response->success) {
    // SMS sent
}

Queuing SMS

Barta::to(['01700000000', '01800000000'])
    ->message('Bulk update')
    ->queue();

Using a specific driver

Barta::driver('ssl')
    ->to('01900000000')
    ->message('Direct SSL message')
    ->send();

Notification Integration

Define the toBarta method in your notification class:

use Larament\Barta\Notifications\BartaMessage;

public function toBarta($notifiable)
{
    return new BartaMessage("Your security code: 987654");
}

// Optional: specify driver per notification
public function bartaDriver()
{
    return 'mimsms';
}

Standardized Phone Numbers

Barta formats numbers automatically. All these inputs result in 8801700000000:

  • 01700000000
  • 8801700000000
  • +8801700000000
  • 017-00000000

Configuration

Publish config: php artisan barta:install

Key settings in config/barta.php:

  • default: The driver used when driver() is not called.
  • drivers: Gateway-specific credentials (API keys, tokens, sender IDs).
  • request: Global timeout and retry settings.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource