Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.53 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.53 KB

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