PHPackages                             bilberrry-packages/yii-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. bilberrry-packages/yii-sendgrid

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

bilberrry-packages/yii-sendgrid
===============================

00PHP

Since Feb 6Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii-sendgrid extension
======================

[](#yii-sendgrid-extension)

YiiSendGrid is an application component used for sending email through [sendgrid](http://sendgrid.com).
It's a wrapper for [SendGrid php library](https://github.com/sendgrid/sendgrid-php)

Requirements
------------

[](#requirements)

- PHP 5.6+

Instalattion
------------

[](#instalattion)

- download the file and extract to protected/extensions (or anywhere you like, but then adjust the example accordingly)
- go to the extension directory and run `composer install`

Add the component to your configuration file (usually protected/configs/main.php) as below:

```
return array(
	'components' => array(
		//...
 		'sendgrid' => array(
 			'class' => 'ext.yii-sendgrid.YiiSendGrid', //path to YiiSendGrid class
 			'apiKey'=>'myApiKey', //replace with your actual api key
 		),
 		//...
 	)
 );
```

How to use
----------

[](#how-to-use)

Examples

```
$message = Yii::app()->sendgrid->createEmail();
//shortcut to $message = new Mail();

$message->addContent(
    "text/html", "Example message"
);
$message->setSubject('Test message');
$message->addTo('to@mydomain.com');
$message->setFrom(from@mydomain.com);

Yii::app()->sendgrid->send($message);
```

Resources
---------

[](#resources)

- [SendGrid php library](https://github.com/sendgrid/sendgrid-php)

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c156cf7b4e2caeb8a58ce7fce16e48b39ee9338c0c5d4e24e9473ab74bce0fda?d=identicon)[bilberrry](/maintainers/bilberrry)

---

Top Contributors

[![alexmukho](https://avatars.githubusercontent.com/u/1778299?v=4)](https://github.com/alexmukho "alexmukho (3 commits)")[![usualdesigner](https://avatars.githubusercontent.com/u/1237827?v=4)](https://github.com/usualdesigner "usualdesigner (3 commits)")

### Embed Badge

![Health badge](/badges/bilberrry-packages-yii-sendgrid/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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