PHPackages                             smkbd/bangla-sms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. smkbd/bangla-sms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

smkbd/bangla-sms
================

Laravel SMS notification channel for Bangladeshi SMS providers

v1.1.3(2y ago)014MITPHP

Since Nov 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/smkbd/bangla-sms)[ Packagist](https://packagist.org/packages/smkbd/bangla-sms)[ RSS](/packages/smkbd-bangla-sms/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Bangla SMS
==========

[](#bangla-sms)

As of Laravel 10, it only supports Vonage as the SMS notification channel. But `smkbd/bangla-sms` package lets you utilize Bangladeshi bulk SMS services to send SMS notifications.

This package supports a number of Bangladeshi SMS service providers/gateways (see below).

Version Support
---------------

[](#version-support)

Laravel VersionSupportLaravel 10✔️Laravel 9✔️Laravel 8✔️Laravel 7Not testedLaravel 6Not testedInstallation
------------

[](#installation)

The following command will add the latest version of the package to your Laravel project.

```
composer require smkbd/bangla-sms

```

Configuration
-------------

[](#configuration)

### 1. Publish the configuration file

[](#1-publish-the-configuration-file)

```
php artisan vendor:publish --tag=bangla-sms

```

It will publish `bangla-sms.php` in your project's `/config` directory.

### 2. Configure SMS service provider keys and API tokens

[](#2-configure-sms-service-provider-keys-and-api-tokens)

You will need to set all the required keys and API tokens in the published `/config/bangla-sms.php` config file.

```
'smsq' => [
    'client_id' => 'SET_CLIENT_ID_HERE',
    'api_key' => 'SET_API_KEY_HERE',
    'sender_id' => 'SET_SENDER_ID_HERE',
    ...
]

```

### 3. Routing SMS Notification

[](#3-routing-sms-notification)

To enable a notifiable (e.g. user) to receive SMS notifications, you need to tell the package where the SMS will be sent by defining a `routeNotificationForBanglaSms` method. For example, if your user phone number is stored in `phone_number` column of the database, you can do it in the following way-

```
class User extends Authenticatable
{
    use Notifiable;

    ...

    public function routeNotificationForBanglaSms()
    {
        return $this->phone_number;
    }
}

```

### 4. Configuring the Laravel Notification class

[](#4-configuring-the-laravel-notification-class)

Configure your Notification class in the following way-

```
use Smkbd\BanglaSms\BanglaSmsChannel;

class ProductPurchased extends Notification
{

    ...

    public function via(object $notifiable): array
    {
        return [BanglaSmsChannel::class];
    }

    public function toBanglaSms(object $notifiable)
    {
        return "SMS content goes here";
    }

    ...
}

```

You can also utilize the queue mechanism with this channel as you would do normally.

```
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;

class ProductPurchased extends Notification implements ShouldQueue
{
    use Queueable;

    ...

}

```

Sending SMS without Notification class
--------------------------------------

[](#sending-sms-without-notification-class)

You can send SMS directly (i.e. without initiating any notification class) by making use of the `Smkbd\BanglaSms\Sender` class in the following way-

```
use Smkbd\BanglaSms\Sender;

...

$sender = new Sender("My message", ["01712345678", "01987654321"]);
$sender->send();

```

You can also specify an SMS provider like this-

```
use Smkbd\BanglaSms\Sender;
use Smkbd\BanglaSms\Provider\Smsq;
...

$provider = new Smsq();
$sender = new Sender("My message", ["01712345678", "01987654321"], $provider);
$sender->send();

```

Available SMS providers
-----------------------

[](#available-sms-providers)

ProviderRequired infoStatus[SMSQ](https://smsq.com.bd/)`client_id`, `sender_id`, `api_token`✔️[SMS NOC](https://smsnoc.com)`token`, `sender_id`✔️### *I don't have the required info. Where do I get it?*

[](#i-dont-have-the-required-info-where-do-i-get-it)

If you are registered with an SMS gateway service provider, you can ask them about the API tokens/IDs. They will be able to help you with it.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~48 days

Total

10

Last Release

770d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f334f85ce494d26bd031050ec420c159103e79ec0eb82e165ac6f4707c26169a?d=identicon)[smkbd](/maintainers/smkbd)

---

Top Contributors

[![smkbd](https://avatars.githubusercontent.com/u/14842230?v=4)](https://github.com/smkbd "smkbd (20 commits)")

### Embed Badge

![Health badge](/badges/smkbd-bangla-sms/health.svg)

```
[![Health](https://phpackages.com/badges/smkbd-bangla-sms/health.svg)](https://phpackages.com/packages/smkbd-bangla-sms)
```

###  Alternatives

[spatie/laravel-failed-job-monitor

Get notified when a queued job fails

1.0k2.7M4](/packages/spatie-laravel-failed-job-monitor)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
