PHPackages                             contributte/latte-email - 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. contributte/latte-email

Abandoned → [contributte/latte](/?search=contributte%2Flatte)ArchivedLibrary[Mail &amp; Notifications](/categories/mail)

contributte/latte-email
=======================

Latte email helper to protect your email addresses.

v3.0.0(6y ago)732.1k2MITPHPPHP ^7.2CI failing

Since Mar 8Pushed 5mo ago4 watchersCompare

[ Source](https://github.com/contributte/latte-email)[ Packagist](https://packagist.org/packages/contributte/latte-email)[ Docs](https://github.com/contributte/latte-email)[ RSS](/packages/contributte-latte-email/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (10)Versions (8)Used By (0)

[![](https://camo.githubusercontent.com/502132b4f03cffc8a5c341d2749dd084271eabb594bee84e85d6d417f342e647/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6c617474652d656d61696c2f3f646570726563617465643d31)](https://camo.githubusercontent.com/502132b4f03cffc8a5c341d2749dd084271eabb594bee84e85d6d417f342e647/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6c617474652d656d61696c2f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained. Please use [contributte/latte](https://github.com/contributte/latte).Composer[`contributte/latte-email`](https://packagist.org/packages/contributte/latte-email)Version[![](https://camo.githubusercontent.com/8475defc1366709b14bf7cecb027505f37903e91b38d821b54c4b1a60577381a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f6c617474652d656d61696c)](https://camo.githubusercontent.com/8475defc1366709b14bf7cecb027505f37903e91b38d821b54c4b1a60577381a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f6c617474652d656d61696c)PHP[![](https://camo.githubusercontent.com/2fd09e68956ae47630d87939356f1181b8b0a850e95f5886891cbf6e07a108d7/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f6c617474652d656d61696c)](https://camo.githubusercontent.com/2fd09e68956ae47630d87939356f1181b8b0a850e95f5886891cbf6e07a108d7/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f6c617474652d656d61696c)License[![](https://camo.githubusercontent.com/531db244b4bf5ca58465292762b36b34cda676493b7d8d2345f0fcb85ac16175/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6c617474652d656d61696c)](https://camo.githubusercontent.com/531db244b4bf5ca58465292762b36b34cda676493b7d8d2345f0fcb85ac16175/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6c617474652d656d61696c)Versions
--------

[](#versions)

StateVersionBranchNettePHPdev`^3.1``master`3.0+`^7.2`stable`^3.0``master`3.0+`^7.2`stable`^2.0``master`2.4`>=5.6`stable`^1.2``master`2.4`>=5.4`(old namespace)Usage 🎉
-------

[](#usage-tada)

### Setup

[](#setup)

Register filter (in case you use nette/di)

```
services:
    nette.latteFactory:
        setup:
            - addFilter('email', 'Contributte\Latte\Helpers\EmailHelper::mailto')
            # or
            - addFilter('email', ['Contributte\Latte\Helpers\EmailHelper', 'mailto'])
```

Alternatively you can also add filter directly to template

```
use Contributte\Latte\Email\Helpers\EmailHelper;

public function createTemplate()
{
    $template = parent::createTemplate();
    $template->addFilter('email', [EmailHelper::class, 'mailto']);
}
```

### Usage

[](#usage)

```
{var $mail = "my@email.net"}

{$mail|email:"javascript"}
{$mail|email:"javascript_charcode"}
{$mail|email:"hex"|noescape}
{$mail|email:"javascript":"link to my email here"}
{$mail|email:"drupal"}
{$mail|email:"texy"}
```

#### Supported encoding methods

[](#supported-encoding-methods)

- javascript
- javascript\_charcode
- hex
- drupal
- texy

Development
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance50

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 70.4% 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 ~260 days

Recently: every ~389 days

Total

7

Last Release

2519d ago

Major Versions

1.2.1 → 2.0.02018-03-12

v2.0.1 → v3.0.02019-06-16

PHP version history (3 changes)1.2.1PHP &gt;= 5.4.0

2.0.0PHP &gt;= 5.6.0

v3.0.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (19 commits)")[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (4 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (4 commits)")

---

Tags

contributteemaillattenette-frameworkphpprotectiontemplates

### Embed Badge

![Health badge](/badges/contributte-latte-email/health.svg)

```
[![Health](https://phpackages.com/badges/contributte-latte-email/health.svg)](https://phpackages.com/packages/contributte-latte-email)
```

###  Alternatives

[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M244](/packages/nette-mail)[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)

PHPackages © 2026

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