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

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

andreasnij/laravel-sms-notification-channel
===========================================

An SMS notification channel for the PHP framework Laravel.

2.0(3mo ago)33.7k↑35.7%1MITPHPPHP &gt;=8.3CI passing

Since Jan 20Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/andreasnij/laravel-sms-notification-channel)[ Packagist](https://packagist.org/packages/andreasnij/laravel-sms-notification-channel)[ Docs](http://github.com/andreasnij/laravel-sms-notification-channel)[ RSS](/packages/andreasnij-laravel-sms-notification-channel/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (22)Versions (7)Used By (0)

Laravel SMS notification channel
================================

[](#laravel-sms-notification-channel)

[![Version](https://camo.githubusercontent.com/fee13ce7360a3a2de9a956b8b1e2ab32ff8c9692d3e8a31b33f0f3b0df3f3b18/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e64726561736e696a2f6c61726176656c2d736d732d6e6f74696669636174696f6e2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreasnij/laravel-sms-notification-channel)

An SMS notification channel for the PHP framework Laravel.

Supported SMS gateways:

- [46elks](https://46elks.com/)
- [Cellsynt](https://www.cellsynt.com)
- [Telenor SMS Pro](https://www.smspro.se/)
- [Twilio](https://www.twilio.com)
- [Vonage (formerly Nexmo)](https://www.vonage.com)

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

[](#installation)

Add the package as a requirement to your `composer.json`:

```
$ composer require andreasnij/laravel-sms-notification-channel
```

If you want to use the **46elks**, **Cellsynt** or **Telenor SMS Pro** gateway you also you need implementations of PSR-7: HTTP message interfaces, PSR-17: HTTP Factories and PSR-18: HTTP Client. A popular package for this is Guzzle. You can install it with:

```
$ composer require guzzlehttp/guzzle:^7.0 guzzlehttp/psr7:^2.0
```

You may choose to use any other implementations of the PSR interfaces though.

If you want to use the **Twilio** gateway you also need to install the Twilio SDK:

```
$ composer require twilio/sdk
```

If you want to use the **Vonage** gateway you also need to install the Vonage client:

```
$ composer require vonage/client-core
```

Next you need to publish the configuration file to your config directory:

```
$ php artisan vendor:publish --provider="LaravelSmsNotificationChannel\ServiceProvider" --tag="config"
```

Edit your `sms.php` configuration file to fit your application.

Usage example
-------------

[](#usage-example)

```
class TestUser
{
    use Notifiable;

    public string $phone_number = '46700000000';

    public function routeNotificationForSms(Notification $notification): ?string
    {
        return $this->phone_number;
    }
}

class TestNotification extends Notification
{
    public function via(mixed $notifiable): array
    {
        return ['sms'];
    }

    public function toSms(mixed $notifiable): string
    {
        return 'Test message';
    }
}

$user = new User();
$user->notify(new TestNotification());
```

You can also use this package to send sms manually (without notifications):

```
use AnSms\SmsTransceiverInterface;
use AnSms\Message\Message;

$smsTransceiver = app(SmsTransceiverInterface::class);

$message = Message::create('46700000000', 'Hello world!');
$smsTransceiver->sendMessage($message);
```

Author
------

[](#author)

Andreas Nilsson ()

License
-------

[](#license)

This software is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance82

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Total

6

Last Release

92d ago

Major Versions

0.2 → 1.02023-03-02

1.2 → 2.02026-04-03

PHP version history (4 changes)0.1PHP &gt;=8.0

1.0PHP &gt;=8.1

1.1PHP &gt;=8.2

2.0PHP &gt;=8.3

### Community

Maintainers

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

---

Top Contributors

[![andreasnij](https://avatars.githubusercontent.com/u/1712334?v=4)](https://github.com/andreasnij "andreasnij (22 commits)")

---

Tags

46elkscellsyntlaravelphpsmstwiliovonagelaravelnotificationsmstwiliovonagecellsynt46elks

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.4M17](/packages/laravel-notification-channels-twilio)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)

PHPackages © 2026

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