定制 cicerbro/email-normalizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cicerbro/email-normalizer

最新稳定版本:2.1.2

Composer 安装命令:

composer require cicerbro/email-normalizer

包简介

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

README 文档

README

This library will normalize email addresses for cases when different email addresses all point towards a single email account. For example user.name+whatever@gmail.com points to username@gmail.com. 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 cicerbro/email-normalizer

Usage

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

$emailNormalizer = new EmailNormalizer(new EmailRules());
$normalizedEmail = $emailNormalizer->normalize('username+whatever@gmail.com');

echo $normalizedEmail; //Returns username@gmail.com

Rule Types

  • Plus Tags: username+tag@gmail.com normalizes as username@gmail.com
  • Hyphen Tags: username-tag@yahoo.com normalizes as username@yahoo.com
  • Dots: first.last@gmail.com normalizes as firstlast@gmail.com
  • Subdomain Addressing: whatever@username.fastmail.com normalizes as username@fastmail.com
  • Aliases: username@googlemail.com normalizes as username@gmail.com

Providers

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

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-07