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

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

tystr/sendgrid-bundle
=====================

A bundle for integrating the sendgrid php library into the Symfony2 framework

v0.1.1(11y ago)710.8k5[3 issues](https://github.com/tystr/TystrSendgridBundle/issues)MITPHP

Since Jul 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tystr/TystrSendgridBundle)[ Packagist](https://packagist.org/packages/tystr/sendgrid-bundle)[ Docs](https://github.com/tystr/TystrSendgridBundle)[ RSS](/packages/tystr-sendgrid-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

TystrSendgridBundle
===================

[](#tystrsendgridbundle)

[![Build Status](https://camo.githubusercontent.com/948dfe06c9ff740125db08dc7d5f4552804d0279123fbd8c3d27401cfeae6504/68747470733a2f2f7472617669732d63692e6f72672f74797374722f547973747253656e646772696442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tystr/TystrSendgridBundle) [![Test Coverage](https://camo.githubusercontent.com/855f03619b4d923a59877f34af07a05639a1904aa55ca527e65d7e9f7c696521/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f74797374722f547973747253656e646772696442756e646c652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/tystr/TystrSendgridBundle/coverage)

A simple bundle for integrating the sendgrid php library into the Symfony2 framework.

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

[](#installation)

### Composer

[](#composer)

Require the package with the following command:

```
$ composer.phar require tystr/sendgrid-bundle

```

Configuration
-------------

[](#configuration)

Enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
new Tystr\Bundle\SendgridBundle\TystrSendgridBundle(),

```

Add the following to your configuration file:

```
tystr_sendgrid:
    username: YOUR_SENDGRID_USERNAME
    password: YOUR_SENDGRID_PASSWORD

```

Usage
-----

[](#usage)

Retrieve the service like so:

```
$sendgrid = $this->get('tystr_sendgrid.sendgrid');

```

See the [Sendgrid Documentation](https://github.com/sendgrid/sendgrid-php/blob/master/README.md#usage)for more information.

WebHooks
--------

[](#webhooks)

The bundle supports sendgrid [webhooks](https://sendgrid.com/docs/API_Reference/Webhooks/event.html).

### Add the bundles routing to your application

[](#add-the-bundles-routing-to-your-application)

```
# in app/config/routing.yml

sendgrid_hooks:
    resource: "@TystrSendgridBundle/Resources/config/routing.xml"
```

### Listen to any of the hook events

[](#listen-to-any-of-the-hook-events)

```

```

```
namespace Acme\Bundle;

use Tystr\Bundle\SendgridBundle\Event\WebHookEvent;

class SendgridListener
{
    public function onEmailBounce(WebHookEvent $event)
    {
        $this->logger->info('Address bounced: ' . $event-getEmail()->getOrElse('unknownEmail'));
    }
}
```

### Register the webhook

[](#register-the-webhook)

In the sendgrid interface, register the URL `http://yourApp.com/__tystr/sendgrid` as the webhook.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.5% 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 ~261 days

Total

2

Last Release

4105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36c21f10d3158414b30b737e8197c7782b483057ff4326dab7c4a9b30726bfa7?d=identicon)[tystr](/maintainers/tystr)

---

Top Contributors

[![tystr](https://avatars.githubusercontent.com/u/779428?v=4)](https://github.com/tystr "tystr (23 commits)")[![davidromani](https://avatars.githubusercontent.com/u/698779?v=4)](https://github.com/davidromani "davidromani (1 commits)")[![ggioffreda](https://avatars.githubusercontent.com/u/711059?v=4)](https://github.com/ggioffreda "ggioffreda (1 commits)")[![pulse00](https://avatars.githubusercontent.com/u/185278?v=4)](https://github.com/pulse00 "pulse00 (1 commits)")

---

Tags

emailsendgrid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sendgrid/sendgrid

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

1.5k49.8M183](/packages/sendgrid-sendgrid)[sendgrid/smtpapi

Build SendGrid X-SMTPAPI headers in PHP.

686.6M2](/packages/sendgrid-smtpapi)[slm/mail

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

108741.5k1](/packages/slm-mail)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1155.2k](/packages/rcsofttech-audit-trail-bundle)[fastglass/sendgrid

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

213.8M](/packages/fastglass-sendgrid)

PHPackages © 2026

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