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

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

nuwira/laravel-sms-notification
===============================

Nuwira SMS Notifications for Laravel

1.0(9y ago)1361MITPHPPHP &gt;=5.6.4

Since Oct 20Pushed 9y ago6 watchersCompare

[ Source](https://github.com/Nuwira/laravel-sms-notification)[ Packagist](https://packagist.org/packages/nuwira/laravel-sms-notification)[ Docs](https://github.com/Nuwira/laravel-sms-notification)[ RSS](/packages/nuwira-laravel-sms-notification/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Nuwira SMS Notifications Channel for Laravel 5.3
================================================

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

This package makes it easy to send SMS notifications using [Nuwira SMS Gateway](http://apisms.nuwira.net/) with Laravel 5.3.

Contents
--------

[](#contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Requirements
------------

[](#requirements)

Log in to Nuwira SMS Gateway then create an application that will give you a Client ID and Client Secret.

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

[](#installation)

You can install the package via composer:

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

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    Nuwira\LaravelSmsNotification\SmsServiceProvider::class,
],
```

Publish the configuration using this command:

```
php artisan vendor:publish --provider="Nuwira\LaravelSmsNotification\SmsServiceProvider"
```

Open `config/sms.php` file and edit the configuration, or you can use `.env` file and fill the Client ID and Client Secret.

```
NUWIRA_SMSGW_CLIENT_ID=client_id
NUWIRA_SMSGW_CLIENT_SECRET=client_secret

```

Usage
-----

[](#usage)

You can now use the channel in your `via()` method inside the Notification class.

```
namespace App\Notifications;

use Nuwira\LaravelSmsNotification\SmsChannel;
use Nuwira\LaravelSmsNotification\SmsMessage;
use Illuminate\Notifications\Notification;

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

    public function toSms($notifiable)
    {
        return (new SmsMessage())
            ->to($phoneNumber)
            ->content($content);
    }
}
```

### Available methods

[](#available-methods)

- `to($phoneNumber)` : `(string)` Receiver phone number. Using international phone number (+62XXXXXXXXXX) format is highly suggested.
- `content($message)` : `(string)` The SMS content. If content length is more than 160 characters, it will be sent as [long SMS](https://en.wikipedia.org/wiki/Concatenated_SMS) automatically.

Security
--------

[](#security)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Muhammad Zamroni](https://github.com/matriphe)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

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

3491d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/809de97d088b0eff358f96141a31bd8897216a03175448192de140f2723bdea6?d=identicon)[matriphe](/maintainers/matriphe)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/nuwira-laravel-sms-notification/health.svg)](https://phpackages.com/packages/nuwira-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)
