alicedtrh/emailnormalizer

This package is abandoned and no longer maintained. No replacement package was suggested.

A library that does its best to normalize emails from various populair email companies.

v1.0.0 2020-05-12 10:57 UTC

This package is auto-updated.

Last update: 2021-12-03 14:07:48 UTC


README

A library that does its best to normalize emails from various populair email companies.

This is useful in preventing multiple signups from the same email for games for example.

Currently only supports Google Mail.

Install like this:

composer require alicedtrh/emailnormalizer

Use like this:

<?php

use \AliceDTRH\EmailNormalizer\EmailNormalizer;

$normalizer = new EmailNormalizer();
$email = "exampLE.Email+example1234@gmail.com";

echo($normalizer->normalizeEmail($email)); //Output: exampleemail@gmail.com

?>

License

AliceDTRH/EmailNormalize is licensed under the GNU Affero General Public License v3.0

Some parts of this code use information from https://github.com/iDoRecall/email-normalize
which is licensed under the MIT License.