PHPackages                             kardasz/swiftmailer-transport-sendgrid - 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. kardasz/swiftmailer-transport-sendgrid

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

kardasz/swiftmailer-transport-sendgrid
======================================

SwiftMailer Sendgrid Transport

1.0.2(6y ago)126.5k4[1 PRs](https://github.com/kardasz/swiftmailer-transport-sendgrid/pulls)MITPHPPHP &gt;=7.2.0CI failing

Since Jun 19Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/kardasz/swiftmailer-transport-sendgrid)[ Packagist](https://packagist.org/packages/kardasz/swiftmailer-transport-sendgrid)[ Docs](https://swiftmailer.symfony.com)[ RSS](/packages/kardasz-swiftmailer-transport-sendgrid/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

SwiftMailer Sendgrid Transport
==============================

[](#swiftmailer-sendgrid-transport)

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

[](#installation)

`composer require kardasz/swiftmailer-transport-sendgrid`

Usage
-----

[](#usage)

```
use Kardasz\Swiftmailer\Transport\SendGridTransport;
use SendGrid;
use Swift_Events_SimpleEventDispatcher;
use Swift_Mailer;
use Swift_Message;

require 'vendor/autoload.php';

// SendGrid API KEY
$apiKey = getenv('SENDGRID_API_KEY');

// SendGrid Client
$sendgrid = new SendGrid($apiKey);

// SendGrid Transport
$transport = new SendGridTransport($sendgrid);

// Create the Mailer using your created Transport
$mailer = new Swift_Mailer($transport);

// Create a message
$message = (new Swift_Message('Wonderful Subject'))
  ->setFrom(['john@doe.com' => 'John Doe'])
  ->setTo(['receiver@domain.org', 'other@domain.org' => 'A name'])
  ->setBody('Here is the message itself')
  ;

// Send the message
$result = $mailer->send($message);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance40

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~236 days

Total

3

Last Release

2412d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/069d3cdbb3db151aee8f448081bf05ba69deba0057bd4769a5962d09a3c4d69b?d=identicon)[kardasz](/maintainers/kardasz)

---

Top Contributors

[![kardasz](https://avatars.githubusercontent.com/u/1894170?v=4)](https://github.com/kardasz "kardasz (6 commits)")[![johncongdon](https://avatars.githubusercontent.com/u/67472?v=4)](https://github.com/johncongdon "johncongdon (2 commits)")

---

Tags

mailemailsendgridmailertransportswiftmailer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kardasz-swiftmailer-transport-sendgrid/health.svg)

```
[![Health](https://phpackages.com/badges/kardasz-swiftmailer-transport-sendgrid/health.svg)](https://phpackages.com/packages/kardasz-swiftmailer-transport-sendgrid)
```

###  Alternatives

[yuan1994/tp-mailer

A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based SwiftMailer

812.0k1](/packages/yuan1994-tp-mailer)[andrewdyer/slim3-mailer

Email support for the Slim Framework using Twig and Swift Mailer.

1032.7k](/packages/andrewdyer-slim3-mailer)[cattong/think-mailer

A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based SwiftMailer

361.9k1](/packages/cattong-think-mailer)

PHPackages © 2026

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