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, 13

v1.2.0(1mo ago)51.1k↑553.3%2MITPHPPHP ^8.1CI passing

Since Jun 27Pushed 1mo 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 today

READMEChangelog (5)Dependencies (14)Versions (15)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

52

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~148 days

Recently: every ~192 days

Total

13

Last Release

55d 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 (38 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 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/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M888](/packages/laravel-socialite)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M148](/packages/laravel-cashier)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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