szepeviktor / unique-email-address
v0.3.0
2023-02-08 11:45 UTC
Requires
- php: ~7.4 || ~8.0 || ~8.1
- ext-intl: *
- ext-mbstring: *
- jeremykendall/php-domain-parser: ^6.1
Requires (Dev)
- pestphp/pest: ^1.22
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2024-11-18 05:23:50 UTC
README
Normalizes an email address. It removes tags, separators like +something
and .
in Gmail.
- extendable
- 100% flexible configuration
- tells whether a valid email address belongs to the configured domains
- normalizes an address
- compares two addresses
Inspired by https://github.com/imliam/php-unique-gmail-address ✔️
Installation
composer require szepeviktor/unique-email-address
Usage
$gmail = new Gmail(); $address = 'firstname.LASTname+label@gmail.com'; $gmail->isLocal($address); // true $gmail->normalize($address); // 'firstnamelastname@gmail.com'