PHPackages                             topcu/toplusmslaravel - 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. topcu/toplusmslaravel

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

topcu/toplusmslaravel
=====================

Laravel Notification for toplusmsapi.com

v1.0.2(9y ago)01161PHP

Since Apr 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/topcu/toplusmslaravel)[ Packagist](https://packagist.org/packages/topcu/toplusmslaravel)[ RSS](/packages/topcu-toplusmslaravel/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

toplusmsapi SMS Notifications for Laravel 5.3
=============================================

[](#toplusmsapi-sms-notifications-for-laravel-53)

Introduction
------------

[](#introduction)

This is a simple Notifications channel for Laravel.

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

[](#installation)

First, you'll need to require the package with Composer:

```
composer require topcu/toplusmslaravel
```

Aftwards, run `composer update` from your command line.

Then, update `config/app.php` by adding an entry for the service provider.

```
'providers' => [
	// ...
    Topcu\TopluSms\TopluSmsProvider::class,
];
```

Then, update `config/services.php` by adding your toplusms credentials.

```
return [
   // ...
	,
        'toplusms' => [
            'username' => env('TOPLUSMS_USERNAME'),
            'password' => env('TOPLUSMS_PASSWORD'),
            'from' => env('TOPLUSMS_FROM', null), // Can be ovverdiden with $message->from()
        ]
    // ...
];
```

Usage
-----

[](#usage)

### Routing sms notifications

[](#routing-sms-notifications)

In order to send sms messages, you need to specify recipient for each notifiable entity. For instance in `app/user.php`

```
    // ...
    public function routeNotificationForSms(){
        return $this->phone;
    }
    // ...
```

### Sending notification

[](#sending-notification)

### via Method

[](#via-method)

In your notification class you can define channel as:

```
    // ...
    public function via($notifiable)
    {
        return ['sms'];
    }
    // ...
```

### toSMS Method

[](#tosms-method)

You also need to define, `toSms` method. You can:

1. Send a simple string as:

```
    // ...
    public function toSms($notifiable)
    {
        return "Hello World!";
    }
    // ...
```

2. Or define a from (sender) to override config:

```
    // ...
    public function toSms($notifiable)
    {
       $message = new SmsMessage("Hello World");
       $message->from("5xxxxxxxxx");
       return $message;
    }
    // ...
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3352d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/topcu-toplusmslaravel/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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