PHPackages                             zfstarter/zfs-mail - 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. zfstarter/zfs-mail

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

zfstarter/zfs-mail
==================

ZFStarterMail

0222PHP

Since Apr 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ZFStarter/ZFSMail)[ Packagist](https://packagist.org/packages/zfstarter/zfs-mail)[ RSS](/packages/zfstarter-zfs-mail/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/5c7bbd7dbce32bb9992659b75abf747220142e5d37a5f0a548ac282e61eb86c0/68747470733a2f2f706f7365722e707567782e6f72672f7a66737461727465722f7a66732d6d61696c2f762f737461626c652e706e67)](https://packagist.org/packages/zfstarter/zfs-mail)[![Total Downloads](https://camo.githubusercontent.com/b796559fa9380eb23e77143a7f8f1979417402e696bc32c5ec1dd9c8e56bcd12/68747470733a2f2f706f7365722e707567782e6f72672f7a66737461727465722f7a66732d6d61696c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/zfstarter/zfs-mail)[![Latest Unstable Version](https://camo.githubusercontent.com/73361b5841b4853b27988cee43429945d35824525f0bcd2f9424a9ffc276bebe/68747470733a2f2f706f7365722e707567782e6f72672f6e6178656c2f7a6663746f6f6c2f762f756e737461626c652e706e67)](https://packagist.org/packages/zfstarter/zfs-mail)[![License](https://camo.githubusercontent.com/a0db5f978a3800794606fe9b09b57958e58cce98d952f85ef15065794824500c/68747470733a2f2f706f7365722e707567782e6f72672f7a66737461727465722f7a66732d6d61696c2f6c6963656e73652e706e67)](https://packagist.org/packages/zfstarter/zfs-mail)

\###Установка:

Добавляем в `composer.json`:

```
{
    "require-dev": {
        "zfstarter/zfs-mail": "dev-master"
    }
}
```

И обновляем зависимость:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

В config\\autoload\\global.php

указываем SMTP настройки, дефолтные мыло и имя отправителя, а также, если необходимо заголовки:

```
return array(
//...
    'mail' => array(
        'transport' => array(
            'host' => '127.0.0.1',
            'port' => '2525'
        ),
        'defaultFrom' => array(
            'email' => 'zfstarter@nixsolutions.com',
            'name' => 'Star Sender'
        ),
        'headers' => array(
            'PROJECT' => 'zfstarter',
        ),
    ),
);
```

В config\\autoload\\application.config.php включаем модуль

```
    'modules'  => array(
        //...
        'ZFStarterMail'
    ),
);
```

Также нужно убедиться, что у вас уже создана под него табличка:

```
CREATE TABLE `mail_templates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `alias` varchar(255) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `bodyHtml` text NOT NULL,
  `bodyText` text NOT NULL,
  `fromEmail` varchar(255) DEFAULT NULL,
  `fromName` varchar(255) DEFAULT NULL,
  `signature` enum('true','false') NOT NULL DEFAULT 'true',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated` timestamp NULL DEFAULT NULL,
  `creator` int(11) NOT NULL,
  `updater` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mail_templates_unique` (`alias`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8
```

\###Отправка мыла:

```
use ZFStarterMail\Model\Mail;
//...
    $data = array(
        'templateName' => 'nameOfTemplateFromBd',
        'toEmail' => 'to@nixsolutions.com',
        'toName' => 'No-reply',
        'params' => array(
            'firstName' => 'Vasya',
            'lastName' => 'Pupkin',
            'host' => $_SERVER['HTTP_HOST'],
        ),
    );
    Mail::sendMail($this->getServiceLocator(), $data);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1148505?v=4)[Alex Khaylo](/maintainers/naxel)[@naxel](https://github.com/naxel)

![](https://www.gravatar.com/avatar/e4f54bfadf1b0fa52ebf1bdd7381abc801c94ef308f02ba60b3716dce84f641d?d=identicon)[filipp-qoma](/maintainers/filipp-qoma)

![](https://www.gravatar.com/avatar/62e06839728e4be3a26376de6535ef408ade1d38c90b5943286096588ff782d9?d=identicon)[farior2109](/maintainers/farior2109)

---

Top Contributors

[![naxel](https://avatars.githubusercontent.com/u/1148505?v=4)](https://github.com/naxel "naxel (12 commits)")[![filipp-kucheriavenko](https://avatars.githubusercontent.com/u/2970662?v=4)](https://github.com/filipp-kucheriavenko "filipp-kucheriavenko (1 commits)")

### Embed Badge

![Health badge](/badges/zfstarter-zfs-mail/health.svg)

```
[![Health](https://phpackages.com/badges/zfstarter-zfs-mail/health.svg)](https://phpackages.com/packages/zfstarter-zfs-mail)
```

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