2017 © Pedro Peláez
 

library transparent-email

Remove aliases from email and get primary email account

image

bkrukowski/transparent-email

Remove aliases from email and get primary email account

  • Wednesday, March 15, 2017
  • by bkrukowski
  • Repository
  • 0 Watchers
  • 8 Stars
  • 250 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 59 % Grown

The README.md

Build Status Coverage Status Codacy Badge, (*1)

Transparent Email

Transparent Email clears aliases from email address. Email John.Doe+alias@gmail.com will be transformed to johndoe@gmail.com., (*2)

Why?

To detect multi-accounts on your website., (*3)

Supported mailboxes

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

The version numbers follow the Semantic Versioning 2.0.0 scheme., (*4)

Yahoo.com

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., (*5)

Yahoo uses the following pattern*:, (*6)

baseName-keyword@yahoo.com, (*7)

  • 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., (*8)

The Versions

15/03 2017

dev-master

9999999-dev

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski

26/10 2016

v0.5.0

0.5.0.0

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski

14/10 2016

v0.4.1

0.4.1.0

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski

14/10 2016

v0.4.0

0.4.0.0

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski

24/09 2016

v0.3.0

0.3.0.0

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski

23/09 2016

v0.2.0

0.2.0.0

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski

20/09 2016

v0.1.0

0.1.0.0

Remove aliases from email and get primary email account

  Sources   Download

MIT

The Requires

  • php ^7.0.0

 

The Development Requires

by Bartłomiej Krukowski