PHPackages                             salamwaddah/laravel-smsglobal-notifications-channel - 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. salamwaddah/laravel-smsglobal-notifications-channel

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

salamwaddah/laravel-smsglobal-notifications-channel
===================================================

SmsGlobal notification channel for Laravel 10, 11, 12

v1.1.2(6mo ago)5531↓50%2MITPHPPHP ^8.1CI passing

Since Jun 27Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/salamwaddah/laravel-smsglobal-notifications-channel)[ Packagist](https://packagist.org/packages/salamwaddah/laravel-smsglobal-notifications-channel)[ RSS](/packages/salamwaddah-laravel-smsglobal-notifications-channel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (13)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/29e619aa9b89368f2e70918f18b137bf309eb469784807f08dc8ba6a873e7ab2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616c616d7761646461682f6c61726176656c2d736d73676c6f62616c2d6e6f74696669636174696f6e732d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salamwaddah/laravel-smsglobal-notifications-channel)[![Total Downloads](https://camo.githubusercontent.com/dfd979f39ab2a6b54524c4eaba644602d5207f3dfbf94ad4c17737bac1aefa9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616c616d7761646461682f6c61726176656c2d736d73676c6f62616c2d6e6f74696669636174696f6e732d6368616e6e656c3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/salamwaddah/laravel-smsglobal-notifications-channel)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Laravel SMSGlobal
=================

[](#laravel-smsglobal)

Use this package to send SMS with [SmsGlobal](https://www.smsglobal.com/)

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

[](#installation)

```
composer require salamwaddah/laravel-smsglobal-notifications-channel

```

Configure
---------

[](#configure)

In your `services.php` config file add the following configs.

```
    // ...

    'sms_global' => [
        'debug' => env('SMS_GLOBAL_DEBUG', true),
        'api_key' => env('SMS_GLOBAL_API_KEY'),
        'api_secret' => env('SMS_GLOBAL_API_SECRET'),
        'origin' => 'YourCompanyName',
    ],

```

Debug Mode
----------

[](#debug-mode)

Debug mode is on by default, which means SMS will not be actually sent, instead only a log record will be added to `/storage/logs/laravel.log`

In your `services.php` change the value of `sms_global.debug` to `false`

Usage
-----

[](#usage)

### Notification class

[](#notification-class)

Using Laravel [notification class](https://laravel.com/docs/8.x/notifications) add `SmsGlobalChannel::class` to `via()`method like so:

```
use Illuminate\Notifications\Notification;
use SalamWaddah\SmsGlobal\SmsGlobalChannel;
use SalamWaddah\SmsGlobal\SmsGlobalMessage;

class OrderPaid extends Notification
{

    public function via($notifiable): array
    {
        return [
            SmsGlobalChannel::class,
        ];
    }

    public function toSmsGlobal($notifiable): SmsGlobalMessage
    {
        $message = 'Order paid, Thank you for your business!';

        $smsGlobal = new SmsGlobalMessage();

        return $smsGlobal->to($notifiable->phone)->content($message);
    }
}
```

### On demand notification

[](#on-demand-notification)

You can utilize Laravel on-demand notification facade to send SMS directly to a phone number without having to store a user in your application.

```
Notification::send(
    '+971555555555',
    new OrderPaid($order)
);
```

The notifiable argument in `toSmsGlobal` of your notification class should expect the same data type you passed to the `Notification` facade.

In this example, we passed the phone number as a `string` because we don't have a "user" and so `toSmsGlobal` should expect a `string`.

```
public function toSmsGlobal(string $phoneNumber): SmsGlobalMessage
{
    $message = 'Order paid, Thank you for your business!';

    $smsGlobal = new SmsGlobalMessage();

    return $smsGlobal->to($phoneNumber)->content($message);
}
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance69

Regular maintenance activity

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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 ~145 days

Recently: every ~172 days

Total

12

Last Release

181d ago

Major Versions

0.4.0 → v1.0.02024-04-03

PHP version history (3 changes)0.0.0PHP ^7.4|^8.0

0.0.1PHP &gt;=7.4

v1.1.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![salamwaddah](https://avatars.githubusercontent.com/u/26627088?v=4)](https://github.com/salamwaddah "salamwaddah (37 commits)")[![Mohmmadshabrani](https://avatars.githubusercontent.com/u/98515393?v=4)](https://github.com/Mohmmadshabrani "Mohmmadshabrani (1 commits)")

---

Tags

laravelsmssmsglobalsmsglobal-laravellaravelnotificationssmsglobal

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/salamwaddah-laravel-smsglobal-notifications-channel/health.svg)

```
[![Health](https://phpackages.com/badges/salamwaddah-laravel-smsglobal-notifications-channel/health.svg)](https://phpackages.com/packages/salamwaddah-laravel-smsglobal-notifications-channel)
```

###  Alternatives

[laravel/slack-notification-channel

Slack Notification Channel for laravel.

89069.7M111](/packages/laravel-slack-notification-channel)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[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/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

210964.1k1](/packages/benwilkins-laravel-fcm-notification)

PHPackages © 2026

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