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

ActiveLaravel-package[Mail &amp; Notifications](/categories/mail)

websms/laravel-notification
===========================

WebSms Laravel Notification

1.0.0(6y ago)116.1k↓81.5%2PHP

Since Sep 28Pushed 6y agoCompare

[ Source](https://github.com/grschannel/websms-laravel-notification)[ Packagist](https://packagist.org/packages/websms/laravel-notification)[ RSS](/packages/websms-laravel-notification/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

websms-laravel-notification
===========================

[](#websms-laravel-notification)

WebSms Laravel Notification

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

[](#installation)

You can install the package via composer:

```
$ composer require websms/laravel-notification
```

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    Websms\LaravelNotification\WebSmsServiceProvider::class,
]
```

Setting up your WebSms account
------------------------------

[](#setting-up-your-websms-account)

Add your WebSms Username, Password and Sender Number to your config/services.php:

```
// config/services.php

...
'websms' => [
'username' => env('WEBSMS_USERNAME'),
'password' => env('WEBSMS_PASSWORD'),
'sendNumber' => env('WEBSMS_SENDNUMBER'),
],
...
```

```
// .env

WEBSMS_USERNAME=your_username
WEBSMS_PASSWORD=your_password
WEBSMS_SENDNUMBER=send_number
```

Usage
-----

[](#usage)

Now you can use the channel in your via() method inside the notification:

```
/**
 * Get the notification's delivery channels.
 *
 * @param  mixed  $notifiable
 * @return array
 */
public function via($notifiable)
{
    return [WebSmsChannel::class];
}

/**
 * Get the sms representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return string
 */
public function toSms($notifiable)
{
    $webSmsMessage = new WebSmsMessage();
    $webSmsMessage->setFrom(env('WEBSMS_SENDNUMBER'));
    $webSmsMessage->setTo($notifiable->routeNotificationFor('sms'));
    $webSmsMessage->setMessage($this->message);

    return $webSmsMessage;
}
```

In order to let your Notification know which phone number you are sending to, add the routeNotificationForSms method to your Notifiable model e.g your User Model

```
public function routeNotificationForSms()
{
    return $this->phone; // where `phone` is a field in your users table;
}
```

Conterbuter
-----------

[](#conterbuter)

- Mohammad Hosseini

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2425d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52470315?v=4)[grschannel](/maintainers/grschannel)[@grschannel](https://github.com/grschannel)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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