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

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

ramprasadm1986/yii2-sendgrid
============================

Sendgrid Mailer for Yii 2

1.0.2(5y ago)061Apache-2.0PHP

Since Oct 23Pushed 5y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

yii2-sendgrid
=============

[](#yii2-sendgrid)

Yii2 SendGrid
=============

[](#yii2-sendgrid-1)

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 ramprasadm1986/yii2-sendgrid "*"

```

or add

```
"ramprasadm1986/yii2-sendgrid": "1.0.2"

```

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' => 'ramprasadm1986\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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

2

Last Release

2028d ago

### Community

Maintainers

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

---

Top Contributors

[![ramprasadm1986](https://avatars.githubusercontent.com/u/54374127?v=4)](https://github.com/ramprasadm1986 "ramprasadm1986 (6 commits)")

---

Tags

sendgridyii2extensionramprasadm1986

### Embed Badge

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

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

###  Alternatives

[bryglen/yii2-sendgrid

Sendgrid Mailer for Yii 2

1353.5k](/packages/bryglen-yii2-sendgrid)[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)
