PHPackages                             shadoll/sletter - 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. shadoll/sletter

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

shadoll/sletter
===============

shadoll sLetter - e-mail send library

18.2.13(8y ago)036↓66.7%PHPPHP ^7.0

Since Feb 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/shadoll/sLetter)[ Packagist](https://packagist.org/packages/shadoll/sletter)[ RSS](/packages/shadoll-sletter/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

sLetter
=======

[](#sletter)

e-mail send library

install
-------

[](#install)

`composer require shadoll/sletter`

usage
-----

[](#usage)

```
require __DIR__.'/../vendor/autoload.php';

$letter = (new shadoll\sLetter);

```

set mail variables:

```
$letter->set([
    'language' => 'ua', // set language (en|ua|ru), default 'en'
    'logoUri' => "https://site.com/logo.png", // link to logo that showing in letter
    'fromMail' => "site@site.com", // sender email
    'fromName' => "SiteLetter", // sender name
    'toMail' => "info@site.com", // resipient email
    'senderDetect' => true, // detect sender location by IP, default 'true'
    'senderIP' => $_SERVER['REMOTE_ADDR'],
    'sender' => 'mailgun', // sender - support mail or mailgun-service
    'mailgun_apikey' => 'key',
    'mailgun_domain' => 'mg.site.com',
]);

```

adding fields titles:

```
$letter->setLang([
    'order' => 'Замовлення',
    'message' => 'Повідомлення',
    'comment' => 'Повідомлення',
    'date' => 'Дата',
    'time' => 'Час',
    'type' => 'Тип',
    'doors' => 'Кількість дверцят',
    'width' => 'Ширина',
    'depth' => 'Глибина',
]);

```

set fields from form:

```
$letter->setData([
    'name' => !empty($_REQUEST['name'])?($_REQUEST['name']):'',
    'phone' => !empty($_REQUEST['phone'])?($_REQUEST['phone']):'',
    'email' => !empty($_REQUEST['email'])?($_REQUEST['email']):'',
    'message' => !empty($_REQUEST['message'])?($_REQUEST['message']):'',
]);

```

fields list to validate before send (not working now):

```
$letter
    ->validate([
        'name',
        'phone',
        'email',
    ])

```

sending email

```
$letter
    ->detect()
    ->send()
    ->state();

```

detect - get sender info from his IP

send - if no error send email

state - action result (not fully working now)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3012d ago

### Community

Maintainers

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

---

Top Contributors

[![shadoll](https://avatars.githubusercontent.com/u/1655183?v=4)](https://github.com/shadoll "shadoll (15 commits)")

### Embed Badge

![Health badge](/badges/shadoll-sletter/health.svg)

```
[![Health](https://phpackages.com/badges/shadoll-sletter/health.svg)](https://phpackages.com/packages/shadoll-sletter)
```

###  Alternatives

[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1031.1M](/packages/cspoo-swiftmailer-mailgun-bundle)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28160.6k](/packages/boundstate-yii2-mailgun)[yarcode/yii2-mailgun-mailer

Mailgun mailer implementation for Yii2

1576.0k](/packages/yarcode-yii2-mailgun-mailer)

PHPackages © 2026

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