PHPackages                             roerjo/laravel-notifications-sendgrid-driver - 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. roerjo/laravel-notifications-sendgrid-driver

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

roerjo/laravel-notifications-sendgrid-driver
============================================

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

v1.3.0(6y ago)519.3k↓39.4%1MITPHPCI failing

Since Aug 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/roerjo/laravel-notifications-sendgrid-driver)[ Packagist](https://packagist.org/packages/roerjo/laravel-notifications-sendgrid-driver)[ RSS](/packages/roerjo-laravel-notifications-sendgrid-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

Laravel Notifications SendGrid Driver
=====================================

[](#laravel-notifications-sendgrid-driver)

A Notification Driver with support for Sendgrid Web API.

Requirements
============

[](#requirements)

This package depends upon . Ensure that you have that package installed before using this package.

Install (Laravel)
=================

[](#install-laravel)

```
composer require roerjo/laravel-notifications-sendgrid-driver
```

OR

Add the package to your composer.json and run composer update.

```
"require": {
    "roerjo/laravel-notifications-sendgrid-driver": "^1"
},
```

Usage
=====

[](#usage)

This package extends the functionality of the MailMessage class. It allows the addition of SendGrid API parameters in the same way that  allows them to be added to the Mailable classes.

The `sendgrid` driver will need be utilized in the @via method of the Notification class:

```
/**
 * Get the notification's delivery channels.
 *
 * @param  mixed  $notifiable
 * @return array
 */
public function via($notifiable)
{
    return ['sendgrid'];
}
```

Then, a `toSendGrid` method call can be used to generate the SendGridMailMessage:

```
/**
 * Get the mail representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return \Roerjo\LaravelNotificationsSendGridDriver\Messages\SendGridMailMessage
 */
public function toSendGrid($notifiable)
{
    $accountId = $this->profile->account()->first()->id;
    $channel = config("channels.{$this->profile->channel}.title");

    return (new SendGridMailMessage)
        ->sendgrid([
            'asm' => [
                'group_id' => config('services.sendgrid.unsubscribe_groups.external')
            ],
        ])
        ->error()
        ->subject("We Need To Re-Authenticate Your {$channel} Profile")
        ->line("The token for your {$channel} profile is no longer valid.")
        ->action(
            "Authenticate {$channel}",
            url("accounts/{$accountId}/profiles")
        )
        ->line('Thank you for helping us help you!');
}
```

Be sure to import SendGridMailMessage if not using the fully qualified namespace in `toSendGrid`:

```
use \Roerjo\LaravelNotificationsSendGridDriver\Messages\SendGridMailMessage;
```

Anonymous Notifications
-----------------------

[](#anonymous-notifications)

```
Notification::route('sendgrid', 'test@test.com')
    ->notify(new ReportNotification);
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Recently: every ~34 days

Total

9

Last Release

2288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4441236064b40e1106acb31438d00d87d64569b9ba8cc4bb22ecb68c1576b39a?d=identicon)[roerjo](/maintainers/roerjo)

---

Top Contributors

[![roerjo](https://avatars.githubusercontent.com/u/14229549?v=4)](https://github.com/roerjo "roerjo (26 commits)")

---

Tags

laravelsendgrid

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/roerjo-laravel-notifications-sendgrid-driver/health.svg)

```
[![Health](https://phpackages.com/badges/roerjo-laravel-notifications-sendgrid-driver/health.svg)](https://phpackages.com/packages/roerjo-laravel-notifications-sendgrid-driver)
```

###  Alternatives

[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/telegram

Telegram Notifications Channel for Laravel

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

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[clarification/sendgrid-laravel-driver

Sendgrid mail driver for Laravel

1131.0k](/packages/clarification-sendgrid-laravel-driver)

PHPackages © 2026

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