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

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

bkrukowski/transparent-email
============================

Remove aliases from email and get primary email account

v0.5.0(9y ago)85.6k1[1 issues](https://github.com/bkrukowski/transparent-email/issues)MITPHPPHP ^7.0.0

Since Sep 20Pushed 4y agoCompare

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

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/c6551a78efcb276ad82be0362d412eee0233513b2190e92718ef966099a879b7/68747470733a2f2f7472617669732d63692e6f72672f626b72756b6f77736b692f7472616e73706172656e742d656d61696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bkrukowski/transparent-email)[![Coverage Status](https://camo.githubusercontent.com/7009b45744a0e290d5c77acbc91b016a5ca3dfa97aea803ddc1b012e296f33e2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626b72756b6f77736b692f7472616e73706172656e742d656d61696c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bkrukowski/transparent-email?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/7a5384a0200ac08a72c1f3d6af5aa997a4901d2c1ad734ed09693eafb2da486d/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3766353139366337316137333439613462303432323862626166623732633133)](https://www.codacy.com/app/bartlomiej-krukowski/transparent-email?utm_source=github.com&utm_medium=referral&utm_content=bkrukowski/transparent-email&utm_campaign=Badge_Grade)

Transparent Email
=================

[](#transparent-email)

Transparent Email clears aliases from email address. Email `John.Doe+alias@gmail.com` will be transformed to `johndoe@gmail.com`.

Why?
----

[](#why)

To detect multi-accounts on your website.

Supported mailboxes
-------------------

[](#supported-mailboxes)

- [gmail.com](https://gmail.com) and [Google Apps](https://apps.google.com) with custom domain
- [tlen.pl](http://tlen.pl)
- [33mail.com](https://www.33mail.com)
- [outlook.com](http://outlook.com)
- [yahoo.com](http://mail.yahoo.com)

Usage
-----

[](#usage)

```
use bkrukowski\TransparentEmail\TransparentEmailFactory;
use bkrukowski\TransparentEmail\Emails\Email;
use bkrukowski\TransparentEmail\Emails\EmailInterface;
use bkrukowski\TransparentEmail\Emails\InvalidEmailException;

try {
    $factory = new TransparentEmailFactory();
    $cleaner = $factory->createDefault();
    $inputEmail = new Email('John.Doe+alias@gmail.com');
    /** @var EmailInterface $transformedEmail */
    $transformedEmail = $cleaner->getPrimaryEmail($inputEmail);
    echo $transformedEmail;
} catch (InvalidEmailException $exception) {
    echo 'Invalid email!';
}
```

Versioning
----------

[](#versioning)

The version numbers follow the [Semantic Versioning 2.0.0](http://semver.org/) scheme.

Yahoo.com
---------

[](#yahoocom)

Aliases work different on Yahoo than on Gmail. On Gmail part after plus is skipped. For example message sent to `janedoe+alias@gmail.com` will be redirected to `janedoe@gmail.com`.

Yahoo uses the following pattern[\*](https://help.yahoo.com/kb/SLN16026.html):

*baseName*-*keyword*@yahoo.com

- *baseName* - value defined by the user, different than email login;
- *keyword* - one from a list of keywords defined by the user.

Therefore we do not know what is the real email, so in this case result will be `baseName@yahoo.com`, which actually does not exist.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~7 days

Total

6

Last Release

3533d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10114238?v=4)[Bartłomiej Krukowski](/maintainers/bkrukowski)[@bkrukowski](https://github.com/bkrukowski)

---

Top Contributors

[![bkrukowski](https://avatars.githubusercontent.com/u/10114238?v=4)](https://github.com/bkrukowski "bkrukowski (46 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bkrukowski-transparent-email/health.svg)

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

###  Alternatives

[ndx/statamic-bard-color-picker

Text color picker with swatches for Bard fields

1174.4k](/packages/ndx-statamic-bard-color-picker)[guoguo/tpflow

Tpflow PHP开源工作流引擎

342.9k](/packages/guoguo-tpflow)[teguh02/indonesia-territory-forms

Display a Indonesia Territory Select Form For Filament Within the Zip-Code Without Any Seeder Needed

161.2k](/packages/teguh02-indonesia-territory-forms)

PHPackages © 2026

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