PHPackages                             yna/laravel-b-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. yna/laravel-b-sms

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

yna/laravel-b-sms
=================

B SMS Notifications channel for Laravel 5.3.

1.0.1(6y ago)015MITPHPPHP &gt;=5.6.4CI failing

Since Aug 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/ynacorp/laravel-b-sms)[ Packagist](https://packagist.org/packages/yna/laravel-b-sms)[ Docs](https://github.com/ynacorp/b-sms)[ RSS](/packages/yna-laravel-b-sms/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

b-sms notifications channel for Laravel 5.3+
============================================

[](#b-sms-notifications-channel-for-laravel-53)

This package makes it easy to send notifications using b-sms with Laravel 5.3+.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require yna/laravel-b-sms
```

Then you must install the service provider:

```
// config/app.php
'providers' => [
    ...
    Yna\BSms\BSmsServiceProvider::class,
],
```

### Setting up the PortToSms service

[](#setting-up-the-porttosms-service)

Add your PortToSms account, user, password and default sender name (or phone number) to your `config/services.php`:

```
// config/services.php
...
'bsms' => [
    'user' => env('BSMS_USER'),
    'password' => env('BSMS_PASSWORD'),
    'sender' => env('BSMS_SENDER')
],
...
```

Usage
-----

[](#usage)

You can use the channel in your `via()` method inside the notification:

```
use Illuminate\Notifications\Notification;
use Yna\PortToSms\PortToSmsMessage;
use Yna\PortToSms\PortToSmsChannel;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [BSmsChannel::class];
    }

    public function toBSms($notifiable)
    {
        return BSmsMessage::create("Task #{$notifiable->id} is complete!");
    }
}
```

In your notifiable model, make sure to include a routeNotificationForPort2sms() method, which return the phone number.

```
public function routeNotificationForBSms()
{
    return $this->phone;
}
```

### Available methods

[](#available-methods)

`from()`: Sets the sender's name or phone number.

`content()`: Set a content of the notification message.

`sendAt()`: Set a time for scheduling the notification message.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~54 days

Total

2

Last Release

2413d ago

### Community

Maintainers

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

---

Top Contributors

[![shemi](https://avatars.githubusercontent.com/u/10219407?v=4)](https://github.com/shemi "shemi (2 commits)")

---

Tags

laravelnotificationsb-sms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yna-laravel-b-sms/health.svg)

```
[![Health](https://phpackages.com/badges/yna-laravel-b-sms/health.svg)](https://phpackages.com/packages/yna-laravel-b-sms)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

210964.1k1](/packages/benwilkins-laravel-fcm-notification)[laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

51192.8k](/packages/laravel-notification-channels-smsc-ru)

PHPackages © 2026

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