PHPackages                             lucasbares/craft-emailobfuscator - 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. [Templating &amp; Views](/categories/templating)
4. /
5. lucasbares/craft-emailobfuscator

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

lucasbares/craft-emailobfuscator
================================

A simple plugin that adds a twig tag to obfuscate email addresses (by rot13) in text fields.

2.3.0(5y ago)34.2k1MITPHPCI failing

Since Mar 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/luke-nehemedia/craft-emailobfuscator)[ Packagist](https://packagist.org/packages/lucasbares/craft-emailobfuscator)[ RSS](/packages/lucasbares-craft-emailobfuscator/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Email obfuscator plugin for Craft CMS 3.x
=========================================

[](#email-obfuscator-plugin-for-craft-cms-3x)

A simple plugin that adds a twig tag to obfuscate email addresses (by ROT13) in text fields.

[![Plugin Logo](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

Requirements
------------

[](#requirements)

This plugin is made for Craft CMS 3.0.0-beta.23 or later. It requires the [Email-Obfuscator by Propaganistas](https://github.com/Propaganistas/Email-Obfuscator) since this plugin is merely a wrapper for his Twig Extension.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require lucasbares/craft-emailobfuscator

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft Emailobfuscator.

You can also update your craft's `composer.json` file and run `composer update`.

Using the Plugin
----------------

[](#using-the-plugin)

This plugin adds the Twig Extension made by [Propaganistas](https://github.com/Propaganistas/Email-Obfuscator) to Craft. It masks all email addresses by ROT13 ciphering or CSS reverse text direction. A simple javascript file decodes the masked emails on the frontend.

To use it, just use the `obfuscateEmail` Twig filter on any text field or string:

```
{{ "Sample Text"|obfuscateEmail }}
{{ textfield|obfuscateEmail }}
```

Configuring the Plugin
----------------------

[](#configuring-the-plugin)

### InludeJS

[](#inludejs)

By default the plugin inserts the necessary JavaScript to your front end html. There is a setting to turn this off if you want to include the JS code manually. The relevant JS code is available at

Craft 4 - Migration to [Craft-Obfuscator](https://github.com/miranj/craft-obfuscator)
-------------------------------------------------------------------------------------

[](#craft-4---migration-to-craft-obfuscator)

Unfortunately, I will not update this plugin for Craft 4. [@Miranj has a plugin](https://github.com/miranj/craft-obfuscator) with almost the same functionality. To use it with the same twig filters and make the transition more easy, I wrote a small module which you can install.

#### Install migration module

[](#install-migration-module)

1. Copy the migration module into `craft/modules`
2. Uninstall this plugin :( and install [Craft-Obfuscator](https://github.com/miranj/craft-obfuscator)
3. Update your site to Craft 4
4. Update your `composer.json` to autoload the module (see example file in folder) and run `composer dump-autoload -a`
5. Now your templates should work againg ;)

Credits
-------

[](#credits)

- [Propaganistas](https://github.com/Propaganistas) for developing this great Twig Extension
- [nystudio107](https://nystudio107.com/blog) for providing great articles on Craft3 plugin development

Brought to you by [Lucas Bares](http://luke.nehemedia.de)

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~384 days

Total

4

Last Release

1926d ago

### Community

Maintainers

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

---

Top Contributors

[![luke-nehemedia](https://avatars.githubusercontent.com/u/7863273?v=4)](https://github.com/luke-nehemedia "luke-nehemedia (34 commits)")[![janhenckens](https://avatars.githubusercontent.com/u/755428?v=4)](https://github.com/janhenckens "janhenckens (2 commits)")[![HelgeSverre](https://avatars.githubusercontent.com/u/1089652?v=4)](https://github.com/HelgeSverre "HelgeSverre (1 commits)")[![svale](https://avatars.githubusercontent.com/u/5339180?v=4)](https://github.com/svale "svale (1 commits)")

---

Tags

craft-plugincraft3craftcmscraftcms-plugincraftcms3emailmailobfuscatorspam-protectiontwigtwig-extensionmailemailspamcmsobfuscatorCraftcraftcmscraft-pluginrobotsprivacyspam protectioncraft emailobfuscatorrot13

### Embed Badge

![Health badge](/badges/lucasbares-craft-emailobfuscator/health.svg)

```
[![Health](https://phpackages.com/badges/lucasbares-craft-emailobfuscator/health.svg)](https://phpackages.com/packages/lucasbares-craft-emailobfuscator)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16172.7k7](/packages/verbb-icon-picker)

PHPackages © 2026

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