PHPackages                             fastglass/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. fastglass/sendgrid

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

fastglass/sendgrid
==================

This library allows you to send emails through SendGrid using PHP and Guzzle 6.x.

2.0.6(3y ago)213.7M—1.3%9[3 issues](https://github.com/taz77/sendgrid-php-ng/issues)MITPHPPHP &gt;=8.1

Since Aug 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/taz77/sendgrid-php-ng)[ Packagist](https://packagist.org/packages/fastglass/sendgrid)[ Docs](https://github.com/taz77/sendgrid-php-ng)[ RSS](/packages/fastglass-sendgrid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (12)Used By (0)

SendGrid-PHP
============

[](#sendgrid-php)

**This is a version of SendGrid-PHP which uses Guzzle 6.x**

[![Quality Gate Status](https://camo.githubusercontent.com/a3038d8ffcdae2a8d983f2e9457a6d07d3be3ba93f8001aae9d7cc31e63553f9/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d74617a37375f73656e64677269642d7068702d6e67266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=taz77_sendgrid-php-ng)

This library allows you to quickly and easily send emails through SendGrid using PHP with the help of Guzzle 6.x. Guzzle is a very popular HTTP client for PHP used in many other PHP packages.

SendGrid has chosen to write their own PHP HTTP client. This module uses Guzzle instead. From the point that SendGrid choose to provide their own HTTP client library, this module was permanently forked away from the official code and is maintained independently of the official libraries. This module uses Guzzle for the transport layer and so the code is different. Contributions to help maintain this library is welcome!

Mainly, this API is maintained in support of the [Drupal Sendgrid Integration Module](https://www.drupal.org/project/sendgrid_integration)that I also maintain. Drupal 8 ships with Guzzle 6.x in the core of the software and Guzzle 6.x supports the standardization of PSR messages. The official Sendgrid PHP API supports only the deprecated Guzzle 3.x as they are maintaining support for PHP 5.3.

To install this library it is best to use composer. I have published a package through Packagist for this library. Use the following in your composer.json:

```
"require": {
    "fastglass/sendgrid": ">=2.0.0"
  }
```

Code Examples
-------------

[](#code-examples)

Refer to the examples' folder to examine how to use this library. The examples make use of environment variables for the API key. Export your API stored in an environment variable named `SENDGRID_API_KEY`.

Running Tests
-------------

[](#running-tests)

The existing tests in the `Tests` directory can be run using [PHPUnit](https://github.com/sebastianbergmann/phpunit/) with the following command:

```
composer update
composer install
./vendor/bin/phpunit ./Tests
```

or if you already have PHPUnit installed globally.

```
cd Tests
phpunit
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 64.7% 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 ~161 days

Recently: every ~173 days

Total

11

Last Release

1224d ago

Major Versions

1.0.12 → 2.0.02020-11-18

PHP version history (4 changes)1.0.9PHP &gt;=5.5.0

2.0.0PHP &gt;=7.1

2.0.3PHP &gt;=7.2

2.0.6PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/34baeab1899742a6ba2d0cd27cd6eb209136ea630ec99393f73f8bc01bde977a?d=identicon)[taz77](/maintainers/taz77)

---

Top Contributors

[![taz77](https://avatars.githubusercontent.com/u/1389543?v=4)](https://github.com/taz77 "taz77 (451 commits)")[![motdotla](https://avatars.githubusercontent.com/u/3848?v=4)](https://github.com/motdotla "motdotla (123 commits)")[![eddiezane](https://avatars.githubusercontent.com/u/959573?v=4)](https://github.com/eddiezane "eddiezane (58 commits)")[![theycallmeswift](https://avatars.githubusercontent.com/u/434373?v=4)](https://github.com/theycallmeswift "theycallmeswift (14 commits)")[![nquinlan](https://avatars.githubusercontent.com/u/829864?v=4)](https://github.com/nquinlan "nquinlan (13 commits)")[![cjbuchmann](https://avatars.githubusercontent.com/u/526429?v=4)](https://github.com/cjbuchmann "cjbuchmann (5 commits)")[![kander-zz](https://avatars.githubusercontent.com/u/521275?v=4)](https://github.com/kander-zz "kander-zz (4 commits)")[![lucasmezencio](https://avatars.githubusercontent.com/u/472412?v=4)](https://github.com/lucasmezencio "lucasmezencio (3 commits)")[![vladpavlovic](https://avatars.githubusercontent.com/u/7979111?v=4)](https://github.com/vladpavlovic "vladpavlovic (2 commits)")[![F21](https://avatars.githubusercontent.com/u/2263040?v=4)](https://github.com/F21 "F21 (2 commits)")[![heitortsergent](https://avatars.githubusercontent.com/u/446316?v=4)](https://github.com/heitortsergent "heitortsergent (2 commits)")[![rbin](https://avatars.githubusercontent.com/u/1341049?v=4)](https://github.com/rbin "rbin (2 commits)")[![jine](https://avatars.githubusercontent.com/u/151606?v=4)](https://github.com/jine "jine (1 commits)")[![dmyers](https://avatars.githubusercontent.com/u/207171?v=4)](https://github.com/dmyers "dmyers (1 commits)")[![khayong](https://avatars.githubusercontent.com/u/1212375?v=4)](https://github.com/khayong "khayong (1 commits)")[![colinmccune](https://avatars.githubusercontent.com/u/843240?v=4)](https://github.com/colinmccune "colinmccune (1 commits)")[![luizpedone](https://avatars.githubusercontent.com/u/1406309?v=4)](https://github.com/luizpedone "luizpedone (1 commits)")[![markwilson](https://avatars.githubusercontent.com/u/81990?v=4)](https://github.com/markwilson "markwilson (1 commits)")[![martyndavies](https://avatars.githubusercontent.com/u/16167?v=4)](https://github.com/martyndavies "martyndavies (1 commits)")[![MattKetmo](https://avatars.githubusercontent.com/u/334996?v=4)](https://github.com/MattKetmo "MattKetmo (1 commits)")

---

Tags

emailsendgridsendgridtwilio sendgrid

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fastglass-sendgrid/health.svg)

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

###  Alternatives

[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[sendgrid/smtpapi

Build SendGrid X-SMTPAPI headers in PHP.

696.5M2](/packages/sendgrid-smtpapi)[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[slm/mail

Integration of various email service providers in the Laminas\\Mail

108732.4k1](/packages/slm-mail)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[omnimail/omnimail

PHP Library to send email across all platforms using one interface.

32934.3k](/packages/omnimail-omnimail)

PHPackages © 2026

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