PHPackages                             b1tc0re/mail-library - 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. [Security](/categories/security)
4. /
5. b1tc0re/mail-library

ActiveLibrary[Security](/categories/security)

b1tc0re/mail-library
====================

Security library for DeftCMS

v0.0.9(5y ago)034MITPHPPHP ^7.2

Since Apr 26Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (3)Used By (0)

DeftCMS mail library
====================

[](#deftcms-mail-library)

Библиотека загружает модель `Core/BaseEmailTemplate` для загрузки шаблонов сообщений.

### Настройки

[](#настройки)

Настройки отправки сообщений.

Для более подробной информацией перейдите по ссылке [CI\_Email](https://codeigniter.com/userguide3/libraries/email.html#email-preferences)

```
$config['email'] = [
    'protocol'          => 'mail',
    'mailpath'          => '/usr/sbin/sendmail',
    'smtp_crypto'       => '',
    'smtp_host'         => 'localhost',
    'smtp_pass'         => '',
    'smtp_port'         => 25,
    'smtp_timeout'      => 3,
    'bcc_batch_mode'    => 1,
    // Сервисный email с которого будут отправлятся письма
    'service_email'         => '',
    //  Подставляется вместо email "Название бренда"
    'service_email_title'   => ''
];
```

### Структура базы данных

[](#структура-базы-данных)

```
'fk_c_locale_code' => [
    'type'           => 'char',
    'constraint'     => 5,
    'null'           => false,
],
's_name' => [
    'type'           => 'varchar',
    'constraint'     => 20,
],
's_subject' => [
    'type'           => 'varchar',
    'constraint'     => 120,
],
's_message' => [
    'type'           => 'text',
    'constraint'     => 0,
],
'i_priority' => [
    'type'           => 'tinyint',
    'constraint'     => 1,
    'default'        => 3
]

```

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

[](#использование)

```
$success = MailFactory::get()->send(
    $subject = 'subject', // Субект письма
    $message = 'message', // Сообшение письма
    $to = 'example@example.ru',    // Получатель Email
    // Email отправителя (если не указан используется глобальная настройка service_email)
    $from = 'example@example.ru',
    // Имя отправителя (если не указан используется глобальная настройка service_email_title)
    $name = null
);

$success = MailFactory::get()->template(
    $name = 'authorize',  // Название шаблона
    $to = 'example@example.ru',    // Получатель Email
    // Email отправителя (если не указан используется глобальная настройка service_email)
    $from = 'example@example.ru',
    // Дополнительные переменный для письма __%extra%__
    $extra = [ 'extra' => '1'  ]
);
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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 ~582 days

Total

2

Last Release

1987d ago

PHP version history (2 changes)v0.0.2PHP ^7.0

v0.0.9PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b2250cbe9bb74ac403d43f790e1cebcca7e51864dec703f381c90dffe6cc8e?d=identicon)[b1tc0re](/maintainers/b1tc0re)

---

Top Contributors

[![b1tc0re](https://avatars.githubusercontent.com/u/8367655?v=4)](https://github.com/b1tc0re "b1tc0re (9 commits)")

---

Tags

b1tc0remail library

### Embed Badge

![Health badge](/badges/b1tc0re-mail-library/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M117](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M277](/packages/illuminate-encryption)

PHPackages © 2026

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