PHPackages                             yna/laravel-port-to-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. yna/laravel-port-to-sms

ActiveLibrary

yna/laravel-port-to-sms
=======================

Port2SMS Notifications channel for Laravel 5.3.

v1.0.0(8y ago)021MITPHPPHP &gt;=5.6.4

Since Sep 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ynacorp/laravel-port-to-sms)[ Packagist](https://packagist.org/packages/yna/laravel-port-to-sms)[ Docs](https://github.com/ynacorp/port-to-sms)[ RSS](/packages/yna-laravel-port-to-sms/feed)WikiDiscussions master Synced 2d ago

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

Port2Sms notifications channel for Laravel 5.3+
===============================================

[](#port2sms-notifications-channel-for-laravel-53)

This package makes it easy to send notifications using Port2SMs with Laravel 5.3+.

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

[](#installation)

You can install the package via composer:

```
composer require yna/laravel-port-to-sms
```

Then you must install the service provider:

```
// config/app.php
'providers' => [
    ...
    Yna\PortToSms\PortToSmsServiceProvider::class,
],
```

### Setting up the PortToSms service

[](#setting-up-the-porttosms-service)

Add your PortToSms account, user, password and default sender name (or phone number) to your `config/services.php`:

```
// config/services.php
...
'port2sms' => [
    'account' => env('PORT2SMS_ACCOUNT'),
    'user' => env('PORT2SMS_USER'),
    'password' => env('PORT2SMS_PASSWORD'),
    'sender' => env('PORT2SMS_SENDER')
],
...
```

Usage
-----

[](#usage)

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

```
use Illuminate\Notifications\Notification;
use Yna\PortToSms\PortToSmsMessage;
use Yna\PortToSms\PortToSmsChannel;

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

    public function toPortToSms($notifiable)
    {
        return PortToSmsMessage::create("Task #{$notifiable->id} is complete!");
    }
}
```

In your notifiable model, make sure to include a routeNotificationForPort2sms() method, which return the phone number.

```
public function routeNotificationForPort2sms()
{
    return $this->phone;
}
```

### Available methods

[](#available-methods)

`from()`: Sets the sender's name or phone number.

`content()`: Set a content of the notification message.

`sendAt()`: Set a time for scheduling the notification message.

Security
--------

[](#security)

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

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

3162d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelnotificationsport2smsportToSms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yna-laravel-port-to-sms/health.svg)

```
[![Health](https://phpackages.com/badges/yna-laravel-port-to-sms/health.svg)](https://phpackages.com/packages/yna-laravel-port-to-sms)
```

###  Alternatives

[laravel/slack-notification-channel

Slack Notification Channel for laravel.

89069.7M111](/packages/laravel-slack-notification-channel)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

282733.2k1](/packages/laravel-notification-channels-pusher-push-notifications)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)

PHPackages © 2026

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