PHPackages                             farmani/yii-email-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. [Security](/categories/security)
4. /
5. farmani/yii-email-obfuscator

ActiveYii-extension[Security](/categories/security)

farmani/yii-email-obfuscator
============================

Yii extension to obfuscate eMail addresses.

125PHP

Since Sep 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/farmani/yii-email-obfuscator)[ Packagist](https://packagist.org/packages/farmani/yii-email-obfuscator)[ RSS](/packages/farmani-yii-email-obfuscator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii-email-obfuscator
====================

[](#yii-email-obfuscator)

Email obfuscatior plugin for Yii.

This plugin combines some Email obfuscation technics.

- The @ char is removed and only its index is passed on. It will be reinserted using the expression String.fromCharCode(4*2*2\*4).
- The address itself will be transmitted as a ROT13 transformed string which will be retransformed by Javascript.
- The "mailto:" prefix is decoded as a reversed string which gets unreversed by Javascript.

The Email address "" will result in the following code:

```

var action=":otliam".split("").reverse().join("");
var href="znvyrknzcyr.pbz".replace(/[a-zA-Z]/g, function(c){return String.fromCharCode((c=(c=c.charCodeAt(0)+13)?c:c-26);});
href=href.substr(0, 4) + String.fromCharCode(4*2*2*4) + href.substr(4);
var a = ""+href+"";
document.write(a);

```

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require "farmani/yii-email-obfuscator" "dev-master"

```

or add

```
"farmani/yii-email-obfuscator": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Simply insert this in your template:

```

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![farmani](https://avatars.githubusercontent.com/u/1329580?v=4)](https://github.com/farmani "farmani (3 commits)")

### Embed Badge

![Health badge](/badges/farmani-yii-email-obfuscator/health.svg)

```
[![Health](https://phpackages.com/badges/farmani-yii-email-obfuscator/health.svg)](https://phpackages.com/packages/farmani-yii-email-obfuscator)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/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.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

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

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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