PHPackages                             oscar-team/spryngsms - 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. oscar-team/spryngsms

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

oscar-team/spryngsms
====================

Spryng SMS Notification Channel for Laravel

1.0.4(3mo ago)04.4k↓37.5%MITPHPPHP &gt;=8.0CI passing

Since Mar 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/oscar-team/spryngsms)[ Packagist](https://packagist.org/packages/oscar-team/spryngsms)[ Docs](https://github.com/oscar-team/spryngsms)[ RSS](/packages/oscar-team-spryngsms/feed)WikiDiscussions main Synced 1mo ago

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

Spryng SMS Notification Channel for laravel
-------------------------------------------

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

This repository provide the the laravel notification channel to send sms via Spryng sms.

### Installtion

[](#installtion)

```
composer require oscar-team/spryngsms
```

You can also publish the config file with:

```
php artisan vendor:publish --tag=spryngsms-config
```

`spryngsms.php` You can find more info of config options here info

```
return [
    /*
    |----------------------------------------------------------------------
    | Authentication token
    |----------------------------------------------------------------------
    |
    | Here we need to define the token for api authentication
    |
    */
    'token' => env('SPRYNG_SMS_API_TOKEN'),

    /*
    |----------------------------------------------------------------------
    | From / Originator
    |----------------------------------------------------------------------
    |
    | The sender of the message. Can be alphanumeric string (max. 11 characters)
    | or phonenumber (max. 14 digits in E.164 format like 31612345678)
    |
    */
    'originator' => env('SPRYNG_SMS_FROM_NAME', 'Oscar'),

    /*
    |----------------------------------------------------------------------
    | Route
    |----------------------------------------------------------------------
    |
    | Your given route to send the message on. Can be a valid route
    | ID supplied by Spryng or the default business route.
    |
    */
    'route' => env('SPRYNG_SMS_ROUTE', 'business'),

    /*
    |----------------------------------------------------------------------
    | Route
    |----------------------------------------------------------------------
    |
    | Character encoding of the body. Value can be: plain, unicode or auto
    |
    */
    'encoding' => env('SPRYNG_SMS_ENCODING', 'auto'),

    /*
    |----------------------------------------------------------------------
    | Reference
    |----------------------------------------------------------------------
    |
    | A client reference.
    |
    */
    'reference' => env('SPRYNG_SMS_REFERENCE')
];
```

### Usage?

[](#usage)

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

```
use Oscar\Spryngsms\SpryngsmsChannel;
use Oscar\Spryngsms\SpryngsmsMessage;

class BookingNotification extends Notification
{
  public function via(object $notifiable): array
  {
      return [
        SpryngsmsMessage::class
      ];
  }

  public function toSpryngsms(mixed $notifiable): SpryngsmsMessage|string
  {
      return new SpryngsmsMessage($message, $recipients, $originator, $encoding, $route, $reference);
  }
}
```

Add a `routeNotificationForSpryngsms` method to your Notifiable model to return the phone number:

```
public function routeNotificationForSpryngsms(): string
{
    return $this->phone_number;
}
```

#### `SpryngsmsMessage::class` parameters

[](#spryngsmsmessageclass-parameters)

- `$message` (required)
- `$recipients` (optional)
- `$originator` (optional)
- `$encoding` (optional)
- `$reference` (optional)

Tests
-----

[](#tests)

`phpunit tests`

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~269 days

Total

5

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8056e911dfc74f14b439c21b9187db78073d9b634a72959a6798ce7ddfb8c267?d=identicon)[adnedelcu](/maintainers/adnedelcu)

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

![](https://www.gravatar.com/avatar/93fb92bdd97f20e03fcc8308088e7c147d7442953cb23e44bdd20f59609bb7c4?d=identicon)[iasadurrehman](/maintainers/iasadurrehman)

---

Top Contributors

[![dani821](https://avatars.githubusercontent.com/u/45585631?v=4)](https://github.com/dani821 "dani821 (15 commits)")[![adnedelcu](https://avatars.githubusercontent.com/u/1168310?v=4)](https://github.com/adnedelcu "adnedelcu (1 commits)")[![moiz2050](https://avatars.githubusercontent.com/u/820400?v=4)](https://github.com/moiz2050 "moiz2050 (1 commits)")

### Embed Badge

![Health badge](/badges/oscar-team-spryngsms/health.svg)

```
[![Health](https://phpackages.com/badges/oscar-team-spryngsms/health.svg)](https://phpackages.com/packages/oscar-team-spryngsms)
```

###  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)
