PHPackages                             kduma/sms - 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. kduma/sms

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

kduma/sms
=========

An SMS sender for Laravel 5 with Notification Channel

v1.0.1(8y ago)0281MITPHPPHP ~7.1

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/LV-SMS)[ Packagist](https://packagist.org/packages/kduma/sms)[ RSS](/packages/kduma-sms/feed)WikiDiscussions master Synced 3d ago

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

An SMS sender for Laravel 5 with Notification Channel
=====================================================

[](#an-sms-sender-for-laravel-5-with-notification-channel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5d60204fc0046d6cf42a5e60151f6490f5202b39e8620e64b12aadebcde490d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b64756d612f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/sms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/92e5d16e3b16a70cd88687994656b7c0dfaa2912898c584e4fdf5c994cb57795/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b64756d612f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/sms)

An SMS sender for Laravel 5 with Notification Channel

Install
-------

[](#install)

Via Composer

```
$ composer require kduma/sms
```

In Laravel 5.6, service provider is automatically discovered. If you don't use package discovery, add the Service Provider to the providers array in `config/app.php`:

```
KDuma\SMS\SMSServiceProvider::class,

```

And following facade to facades array:

```
'SMS' => KDuma\SMS\Facades\SMS::class,

```

Publish `sms.php` config file using following command:

```
php artisan vendor:publish --provider="KDuma\SMS\SMSServiceProvider"

```

Now You can install and configure SMS channels and drivers. Configuration options are available in drivers readme's.

Available Drivers
-----------------

[](#available-drivers)

- SerwerSMS.pl - [kduma/sms-driver-serwersms](https://github.com/kduma-OSS/L5-SMS-Driver-SerwerSMS)
- JustSend.pl - [kduma/sms-driver-justsend](https://github.com/kduma-OSS/L5-SMS-Driver-JustSend)

Usage
-----

[](#usage)

```
SMS::send('phone number', 'Message.');
SMS::balance();
SMS::driver('serwersms')->send('phone number', 'Message.');
```

Laravel 5.3 Notifications Channel Usage
---------------------------------------

[](#laravel-53-notifications-channel-usage)

Follow Laravel's documentation to add the channel your Notification class, for example:

```
use Illuminate\Notifications\Notification;
use KDuma\SMS\NotificationChannel\SMSChannel;
use KDuma\SMS\NotificationChannel\SMSMessage;

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

    public function toSMS($notifiable)
    {
        return SMSMessage::create('This is a test SMS sent via Simple SMS using Laravel Notifications!');
    }
}
```

Also you need to add a `routeNotificationForSMS` method to your Notifiable model to return the phone number, for example:

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

### `SMSMessage` Available methods

[](#smsmessage-available-methods)

- `content()` - SMS content
- `channel()` - Set the configured SMS channel

Credits
-------

[](#credits)

- [Krystian Duma](https://github.com/kduma)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

3015d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

kduma-smslaravelphpsms

### Embed Badge

![Health badge](/badges/kduma-sms/health.svg)

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

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[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/apn

Apple APN Push Notification Channel

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

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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