PHPackages                             nfacha/yii2-yashop-ses - 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. nfacha/yii2-yashop-ses

ActiveYii2-extension

nfacha/yii2-yashop-ses
======================

Extension for sending emails via amazon ses

1.0.6(5y ago)08MITPHP

Since May 2Pushed 5y agoCompare

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

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

Amazon ses extension for Yii2
=============================

[](#amazon-ses-extension-for-yii2)

Extension for sending emails via amazon ses. Part of nfacha

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist nfacha/yii2-yashop-ses "*"

```

or add

```
"nfacha/yii2-yashop-ses": "*"

```

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

Usage
-----

[](#usage)

To use this extension, you should configure it in the application configuration like the following:

```
'components' => [
    ...
    'mail' => [
        'class' => 'nfacha\ses\Mailer',
        'access_key' => 'Your access key',
        'secret_key' => 'Your secret key',
        'host' => 'email.us-east-1.amazonaws.com' // not required
    ],
    ...
],
```

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

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

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

```
Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->setHeader('Precedence', 'bulk')
    ->setHeader('List-id', '')
    ->setHeader('List-Unsubscribe', Url::to(['user/unsubscribe'], true))
    ->send();
```

Increase the speed of sending emails:

```
Yii::$app->mailer->getSES()->enableVerifyHost(false);
Yii::$app->mailer->getSES()->enableVerifyPeer(false);
Yii::$app->mailer->getSES()->enableKeepAlive();

foreach ($emails as $email) {
    Yii::$app->mail->compose('delivery/mail', [])
        ->setFrom('from@domain.com')
        ->setTo($email)
        ->setSubject($subject)
        ->setHeader('Precedence', 'bulk')
        ->setHeader('List-id', '')
        ->setHeader('List-Unsubscribe', Url::to(['user/unsubscribe'], true))
        ->send();
}

Yii::$app->mailer->getSES()->enableKeepAlive(false);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~414 days

Recently: every ~384 days

Total

7

Last Release

1910d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a94972e7597c458d3fde0f3a6683417c763fe4879f087adb438b93a08558e71?d=identicon)[nfacha](/maintainers/nfacha)

---

Top Contributors

[![ofat](https://avatars.githubusercontent.com/u/1476004?v=4)](https://github.com/ofat "ofat (12 commits)")[![daniel-zahariev](https://avatars.githubusercontent.com/u/263063?v=4)](https://github.com/daniel-zahariev "daniel-zahariev (4 commits)")[![evaldemar](https://avatars.githubusercontent.com/u/3917590?v=4)](https://github.com/evaldemar "evaldemar (4 commits)")[![nfacha](https://avatars.githubusercontent.com/u/8540172?v=4)](https://github.com/nfacha "nfacha (3 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

awsyii2extensionses

### Embed Badge

![Health badge](/badges/nfacha-yii2-yashop-ses/health.svg)

```
[![Health](https://phpackages.com/badges/nfacha-yii2-yashop-ses/health.svg)](https://phpackages.com/packages/nfacha-yii2-yashop-ses)
```

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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