PHPackages                             jluct/yii2-jluct-swiftmailer-helper - 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. jluct/yii2-jluct-swiftmailer-helper

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

jluct/yii2-jluct-swiftmailer-helper
===================================

The swiftmailer helper

02PHP

Since Oct 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Jluct/yii2-jluct-swiftmailer-helper)[ Packagist](https://packagist.org/packages/jluct/yii2-jluct-swiftmailer-helper)[ RSS](/packages/jluct-yii2-jluct-swiftmailer-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

**Мой первый пакет!)**
Основная задача скорее сделать пакет ради пакета. Не уверен что смогу чем то помочь проекту Yii2, но очень хочу, а значит можно)) Если вы всё ещё читаете это, то я буду рад поедлиться с Вами своим трудом. Прошу конструктивно критиковать, что бы я мог исправить свои ошибки. Поверьте, я хочу принести своим трудом пользу и буду рад исправить свои ошибки. Но так как опыта мало, я их возможно и не вижу.

Этот скрипт поможет Вам организовать типовыую расслку для пользователей, а так же поможет оповестить группы пользователей.

Опишите данные в массиве по примеру:

 ```
 'setting' =>   // настройки по умаолчанию для всех сообщений. Переопределяются в messages.
                // Если для конкретного адреса не указан параметр он будет взят из setting
      [
           'from' => '' // адресс отправителя
           'layout' =>'' // макет
           'view' =>'' // представления
           'subject' =>'' // отправитель
      ],
      'messages'=>[
                // настройки конкретного сообщения.
                // Можно будет передать одномерный массив с адресами, а настройки указать в массиве setting (None)
           [
               'address'=> '',
               'from' => '', // адрес отправителя
               'layout' => '' // макет
               'view' => '' // представление
               'subject' =>'' // отправитель
               'params' => [] // передаваемые параметры
          ],
           [...],
      ],
      'internalTarget'=>[    // дополнительное оповещение сотрудников
           'target' => [], // группа оповещения
           'from' => '' // адресс отправителя
           'layout' =>'' // макет
           'view' =>'' //представление
           'subject' =>'' // отправитель
           'params' => [] // параметры
      ]

```

Скрипт требует наличие массива "emailGroups", где должны быть описанны массивы групп адресов рассылок.

 ```
    'emailGroups' =>
            [
                'required' => ['example1.com','example1.com'],
                'non-required' => ['example1.com'],
                'custom' => ['example1.com']
            ],

```

Использование:

 ```
    $messager = new jluctSwiftmailerHelper(Yii::$app->params['emailSetting']);

        //для отправки сообщений пользователям и персоналу
        $messager->sendAllEmailMessages($testData);

        //Просто отправка сообщения пользователю
        $messager->sendEmailMessage($testData['messages'])

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

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

---

Top Contributors

[![Jluct](https://avatars.githubusercontent.com/u/13801135?v=4)](https://github.com/Jluct "Jluct (8 commits)")

### Embed Badge

![Health badge](/badges/jluct-yii2-jluct-swiftmailer-helper/health.svg)

```
[![Health](https://phpackages.com/badges/jluct-yii2-jluct-swiftmailer-helper/health.svg)](https://phpackages.com/packages/jluct-yii2-jluct-swiftmailer-helper)
```

###  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)
