Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szepeviktor/unique-email-address
Normalize an email address 📨
https://github.com/szepeviktor/unique-email-address
email gmail unique
Last synced: 3 months ago
JSON representation
Normalize an email address 📨
- Host: GitHub
- URL: https://github.com/szepeviktor/unique-email-address
- Owner: szepeviktor
- Created: 2020-09-13T00:30:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T06:07:06.000Z (9 months ago)
- Last Synced: 2024-05-01T13:25:36.963Z (8 months ago)
- Topics: email, gmail, unique
- Language: PHP
- Homepage: https://packagist.org/packages/szepeviktor/unique-email-address
- Size: 200 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unique email address
[![Build Status](https://app.travis-ci.com/szepeviktor/unique-email-address.svg?branch=master)](https://app.travis-ci.com/szepeviktor/unique-email-address)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/szepeviktor/unique-email-address.svg)](https://packagist.org/packages/szepeviktor/unique-email-address)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 addressesInspired by https://github.com/imliam/php-unique-gmail-address :heavy_check_mark:
### Installation
```bash
composer require szepeviktor/unique-email-address
```### Usage
```php
$gmail = new Gmail();
$address = '[email protected]';
$gmail->isLocal($address); // true
$gmail->normalize($address); // '[email protected]'
```