PHPackages                             miranj/craft-obfuscator - 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. miranj/craft-obfuscator

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

miranj/craft-obfuscator
=======================

Adds a Twig filter to obfuscate emails using Hivelogic Enkoder.

1.2.0(2y ago)1642.8k—5.6%1[1 issues](https://github.com/miranj/craft-obfuscator/issues)2MITPHPPHP ^7.2.5 || ^8.0

Since May 15Pushed 2y ago2 watchersCompare

[ Source](https://github.com/miranj/craft-obfuscator)[ Packagist](https://packagist.org/packages/miranj/craft-obfuscator)[ RSS](/packages/miranj-craft-obfuscator/feed)WikiDiscussions v1 Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (12)Used By (2)

[![Obfuscator icon](./src/icon.svg)](./src/icon.svg)

Obfuscator
==========

[](#obfuscator)

A [Craft CMS](http://buildwithcraft.com/) plugin that adds a [Twig](http://twig.sensiolabs.org/) filter to obfuscate emails or any other content using [Hivelogic Enkoder](http://hivelogic.com/enkoder/).

This plugin uses [Standalone PHPEnkoder](https://github.com/jnicol/standalone-phpenkoder).

Contents
--------

[](#contents)

- [Usage](#usage)
- [Installation](#installation)
- [Requirements](#requirements)
- [Changelog](./CHANGELOG.md)
- [License](./LICENSE.md)

Usage
-----

[](#usage)

The following Twig snippet —

```
{% apply enkode_emails %}
    Reach us on me@example.com or
    here.
{% endapply %}
```

will result in HTML where both the plain text email, and the `mailto:`anchor tag are recognised as emails and obfuscated. It will result in something like this (re-formatted for readability):

```
Reach us on

email hidden; JavaScript is required
 /*  */

or

email hidden; JavaScript is required
 /*  */ .
```

In addition to the `enkode_emails` filter, Obfuscator comes with a bunch of additional filters for more fine grained targeting of what to obfuscate.

```
{{ 'Reach us on me@example.com or here.'|enkode_emails }}

{{ 'Contact Us'|enkode_mailtos }}

{{ 'Contact us at me@example.com.'|enkode_plaintext_emails }}

{{ 'I don’t want spam bots to read this.'|enkode }}

{{ 'If you don’t have JavaScript, you’ll see a helpful message.'|enkode('JavaScript is required to view this message.') }}
```

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

[](#installation)

You can install this plugin from the [Plugin Store](https://plugins.craftcms.com/obfuscator) or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “Obfuscator”. Then click on the “Install” button in its modal window.

#### Using Composer

[](#using-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/project

# tell composer to use the plugin
composer require miranj/craft-obfuscator

# tell Craft to install the plugin
./craft plugin/install obfuscator

```

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

[](#requirements)

This plugin requires Craft CMS 3, 4, or 5. The Craft 2 version is availabe in [the `v0` branch](https://github.com/miranj/craft-obfuscator/tree/v0).

---

Brought to you by [Miranj](https://miranj.in/)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 69.8% 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 ~196 days

Recently: every ~373 days

Total

12

Last Release

766d ago

Major Versions

v0.x-dev → 1.0.02018-10-25

PHP version history (2 changes)1.1.0PHP ^7.2.5|^8.0

1.1.1PHP ^7.2.5 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1098673?v=4)[Miranj](/maintainers/miranj)[@miranj](https://github.com/miranj)

![](https://avatars.githubusercontent.com/u/663677?v=4)[Prateek Rungta](/maintainers/rungta)[@rungta](https://github.com/rungta)

![](https://avatars.githubusercontent.com/u/663682?v=4)[Souvik Das Gupta](/maintainers/souvikdg)[@souvikdg](https://github.com/souvikdg)

---

Top Contributors

[![rungta](https://avatars.githubusercontent.com/u/663677?v=4)](https://github.com/rungta "rungta (37 commits)")[![souvikdg](https://avatars.githubusercontent.com/u/663682?v=4)](https://github.com/souvikdg "souvikdg (15 commits)")[![lindseydiloreto](https://avatars.githubusercontent.com/u/5309692?v=4)](https://github.com/lindseydiloreto "lindseydiloreto (1 commits)")

---

Tags

craft-plugincraft2craft3craft4craftcmstwigtwig-filteremailencodeobfuscatecraftcmscraft-pluginenkoder

### Embed Badge

![Health badge](/badges/miranj-craft-obfuscator/health.svg)

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

###  Alternatives

[mmikkel/retcon

Powerful Twig filters for mutating and querying HTML

79183.1k11](/packages/mmikkel-retcon)[superbig/craft3-templateselect

A fieldtype that allows you to select a template from a dropdown.

1744.9k](/packages/superbig-craft3-templateselect)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)[miranj/craft-cryptographer

Adds Twig filters to perform cryptographic operations.

1412.4k](/packages/miranj-craft-cryptographer)[vierbeuter/craft-footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

212.7k](/packages/vierbeuter-craft-footnotes)

PHPackages © 2026

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