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

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

crs/sendgrid-symfony
====================

Bundle used to send mail by Sendgrid

v1.1.0(8y ago)019MITPHPPHP &gt;=5.5.9

Since Dec 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sbsanjaybharti/SendGrid-Symfony)[ Packagist](https://packagist.org/packages/crs/sendgrid-symfony)[ RSS](/packages/crs-sendgrid-symfony/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

SendGrid-Symfony
================

[](#sendgrid-symfony)

Sending Mail with sendgrid

Table of Contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Use Cases](#use-cases)

### Installation:

[](#installation)

#### Install Package

[](#install-package)

Add CRS/SendGridBundle to your `composer.json` file.

```
{
  "require": {
    "crs/sendgrid-symfony": "~1.0"
  }
}
```

Add path in appKernel.php in bundle variable.

```

        $bundles = [
            ....
            ....
            ....
            new CRS\SendgridBundle\SendGridBundle(),
        ];

```

#### Alternative: Install package from cmd

[](#alternative-install-package-from-cmd)

```
	composer require crs/sendgrid-symfony

```

### Quick Start:

[](#quick-start)

Add configuration to your config.yml file

```
#SendGrid API Access
send_grid:
    key: "%send_grid_key%"
    status: "%send_grid_status%"

```

How to send the mail:

```
   $sendmail = new crs_mail();
   $sendmail->setFrom();
   $sendmail->setTo();
   $sendmail->setSubject();
   $sendmail->setBody();
   $sendmail->setTemplate();
   $sendmail->setSubsitute(array(
       '' => ,
       '' => ,
       .....
       '' => ,
   ));
   $sendmail->addAttachment(array(
       ,
       ,
       .......
       ,
   ));
   $sendmail->sendMail();

```

### Use Cases

[](#use-cases)

- In upper code &lt;%---%&gt; with your value
- To send plain mail replace &lt;%CONTENT-TYPE%&gt; with 'text/plain'
- To send html mail replace &lt;%CONTENT-TYPE%&gt; with 'text/html'
- Subsitue is used for replacing value used in your email for example in your email content &lt;%USERNAME%&gt; then your &lt;%SUBSTITUE-1%&gt; will be USERNAME and &lt;%SUBSITUTE-1-VALUE%&gt; will be the actual user name.
- &lt;%FILE-PATH-1%&gt; is used for file path for attachment you can add singel or multiple file total size of your mail should not be more that 30MB
- If there is no any attachment or substitute then you can avoid them.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3116d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6706435?v=4)[Sanjay Bharti](/maintainers/sbsanjaybharti)[@sbsanjaybharti](https://github.com/sbsanjaybharti)

---

Top Contributors

[![sbsanjaybharti](https://avatars.githubusercontent.com/u/6706435?v=4)](https://github.com/sbsanjaybharti "sbsanjaybharti (18 commits)")

### Embed Badge

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

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

###  Alternatives

[swiftmade/laravel-sendgrid-notification-channel

Laravel Notification Channel for Sengrid.com

27308.9k](/packages/swiftmade-laravel-sendgrid-notification-channel)[iandenh/cakephp-sendgrid

SendgridEmail plugin for CakePHP

16125.3k](/packages/iandenh-cakephp-sendgrid)[bryglen/yii2-sendgrid

Sendgrid Mailer for Yii 2

1253.7k](/packages/bryglen-yii2-sendgrid)

PHPackages © 2026

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