PHPackages                             orclyx/email-address-anonymiser - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. orclyx/email-address-anonymiser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

orclyx/email-address-anonymiser
===============================

Email address anonymiser

v1.0.1(5y ago)15MITPHPPHP ^7.4.0

Since Aug 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Orclyx/email-address-anonymiser)[ Packagist](https://packagist.org/packages/orclyx/email-address-anonymiser)[ RSS](/packages/orclyx-email-address-anonymiser/feed)WikiDiscussions master Synced 2d ago

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

Email Address Anonymiser
========================

[](#email-address-anonymiser)

Small PHP package to anonymise email addresses for storage or display.

The user side of the email address will always be transformed, but the domain will only be transformed if it is not commonly used for personal email.

Usage
-----

[](#usage)

```
$anonymiser = new EmailAddressAnonymiser\Anonymiser();

// Becomes a***n@gmail.com
$out = $anonymiser->anonymise('admin@gmail.com');

// Becomes n***y@b***o
$out = $anonymiser->anonymise('no-reply@benyoung.io');
```

CLI
---

[](#cli)

You can use the `cli.php` script to anonymise email addresses via stdin. For example, given a file named `emails.txt`:

```
abc@example.org
admin@gmail.com
john.doe@example.com
no-reply@benyoung.io
root@googlemail.com
webmaster@hotmail.co.uk
webmaster@outlook.com

```

You can use the following one-liner to process each entry:

```
cat emails.txt | php cli.php > emails.anon.txt

```

Which produces `emails.anon.txt`:

```
a***c@e***g
a***n@gmail.com
j***e@e***m
n***y@b***o
r***t@googlemail.com
w***r@hotmail.co.uk
w***r@outlook.com

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~268 days

Total

2

Last Release

1832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a6cb76267b21af3a286e2a10d290ff1447ed2918e4e0f59b39e2d6f42075047?d=identicon)[Orclyx](/maintainers/Orclyx)

---

Top Contributors

[![Orclyx](https://avatars.githubusercontent.com/u/1742238?v=4)](https://github.com/Orclyx "Orclyx (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/orclyx-email-address-anonymiser/health.svg)

```
[![Health](https://phpackages.com/badges/orclyx-email-address-anonymiser/health.svg)](https://phpackages.com/packages/orclyx-email-address-anonymiser)
```

PHPackages © 2026

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