PHPackages                             niisan/laravel-sms-notification - 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. niisan/laravel-sms-notification

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

niisan/laravel-sms-notification
===============================

Add SMS notification channel to laravel.

v0.2.1(5y ago)031.6kMITPHP

Since Jan 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/niisan-tokyo/laravel-sms-channel)[ Packagist](https://packagist.org/packages/niisan/laravel-sms-notification)[ RSS](/packages/niisan-laravel-sms-notification/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

laravel-sms-channel
===================

[](#laravel-sms-channel)

Add SMS notification channnel to laravel.

Install
=======

[](#install)

Fisrt, install package via composer.

```
composer require niisan/laravel-sms-notification

```

And install using client sdk. If we use twilio, we install twilio sdk.

```
composer require twilio/sdk

```

Then we publish configuration.

```
php artisan vendor:publish --provider "Niisan\Notification\SmsNotificationServiceProvider"

```

Usage
=====

[](#usage)

Set `.env`.

```
SMS_DRIVER=twilio
SMS_DEFAULT_FROM='+1111222233'
TWILIO_SID=***********************
TWILIO_TOKEN=***********************

```

In notification class, we can write followin:

```
    public function via($notifiable)
    {
        return ['sms'];
    }

    public function toSms($notifiable)
    {
        return (new SmsMessage)
                ->body('hello world! ' . $notifiable->name);
    }
```

And in notifiable model, we get `phone_number` from `routeNotificationForSms` method to send messages:

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

In this case, SMS sent from the env value: `SMS_DEFAULT_FROM`.

Otherwise, set `to` and `from` by SmsMessage class:

```
    public function toSms($notifiable)
    {
        return (new SmsMessage)
                ->body('hello world! ' . $notifiable->name)
                ->to('+2222333344')
                ->from('+1111222233');
    }
```

Unicode
=======

[](#unicode)

if we want to use unicode string, we use unicode method:

```
    public function toSms($notifiable)
    {
        return (new SmsMessage)
                ->body('hello world! ' . $notifiable->name)
                ->unicode();
    }
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

1948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08f151b9c393859c06a9e1a1655392f43abbd9de6bd3533813728d3588e17cd6?d=identicon)[niisan-tokyo](/maintainers/niisan-tokyo)

---

Top Contributors

[![niisan-tokyo](https://avatars.githubusercontent.com/u/5599175?v=4)](https://github.com/niisan-tokyo "niisan-tokyo (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/niisan-laravel-sms-notification/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[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)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)

PHPackages © 2026

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