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

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

bryglen/yii2-sendgrid
=====================

Sendgrid Mailer for Yii 2

1.1.3(9y ago)1353.5k↓25%24[7 issues](https://github.com/bryglen/yii2-sendgrid/issues)MITPHP

Since Nov 24Pushed 9y ago2 watchersCompare

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

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

Yii 2 bryglen SendGrid
======================

[](#yii-2-bryglen-sendgrid)

Sendgrid Mailer for Yii 2

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist bryglen/yii2-sendgrid "*"

```

or add

```
"bryglen/yii2-sendgrid": "1.1.3"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

To use Mailer, you should configure it in the application configuration like the following,

```
'components' => [
	...
	'sendGrid' => [
		'class' => 'bryglen\sendgrid\Mailer',
		'username' => 'your_user_name',
		'password' => 'your password here',
		//'viewPath' => '@app/views/mail', // your view path here
	],
	...
],
```

To send an email, you may use the following code:

```
$sendGrid = Yii::$app->sendGrid;
$message = $sendGrid->compose('contact/html', ['contactForm' => $form]);
$message->setFrom('from@domain.com')
	->setTo($form->email)
	->setSubject($form->subject)
	->send($sendGrid);
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~188 days

Total

5

Last Release

3430d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/875604?v=4)[bryglen](/maintainers/bryglen)[@bryglen](https://github.com/bryglen)

---

Top Contributors

[![bryglen](https://avatars.githubusercontent.com/u/875604?v=4)](https://github.com/bryglen "bryglen (15 commits)")[![harmosr](https://avatars.githubusercontent.com/u/10755124?v=4)](https://github.com/harmosr "harmosr (2 commits)")[![elrossco22](https://avatars.githubusercontent.com/u/16711585?v=4)](https://github.com/elrossco22 "elrossco22 (1 commits)")

---

Tags

sendgridyii2extensionbryglen

### Embed Badge

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

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

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

87129.2k2](/packages/nterms-yii2-mailqueue)

PHPackages © 2026

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