Skip to content

A PHP library that will normalize email addresses for cases when different email addresses all point towards a single email account

License

Notifications You must be signed in to change notification settings

Gabrola/email-normalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Normalizer

This library will normalize email addresses for cases when different email addresses all point towards a single email account. For example [email protected] points to [email protected]. This is useful for cases such as when you want to limit a single user using a single email account to signup using different email addresses.

Packagist Version Packagist Downloads Codecov GitHub license

Installation

composer require gabrola/email-normalizer

Usage

<?php
use Gabrola\EmailNormalizer\EmailNormalizer;
use Gabrola\EmailNormalizer\EmailRules;

$emailNormalizer = new EmailNormalizer(new EmailRules());
$normalizedEmail = $emailNormalizer->normalize('[email protected]');

echo $normalizedEmail; //Returns [email protected]

Rule Types

Providers

  • Gmail
  • Outlook
  • Yahoo
  • Fastmail
  • Apple iCloud
  • Yandex
  • Mail.ru
  • ProtonMail

About

A PHP library that will normalize email addresses for cases when different email addresses all point towards a single email account

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages