承接 orclyx/email-address-anonymiser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

orclyx/email-address-anonymiser

Composer 安装命令:

composer require orclyx/email-address-anonymiser

包简介

Email address anonymiser

README 文档

README

Small PHP package to anonymise email addresses for storage or display.

The user side of the email address will always be transformed, but the domain will only be transformed if it is not commonly used for personal email.

Usage

$anonymiser = new EmailAddressAnonymiser\Anonymiser();

// Becomes a***n@gmail.com
$out = $anonymiser->anonymise('admin@gmail.com');

// Becomes n***y@b***o
$out = $anonymiser->anonymise('no-reply@benyoung.io');

CLI

You can use the cli.php script to anonymise email addresses via stdin. For example, given a file named emails.txt:

abc@example.org
admin@gmail.com
john.doe@example.com
no-reply@benyoung.io
root@googlemail.com
webmaster@hotmail.co.uk
webmaster@outlook.com

You can use the following one-liner to process each entry:

cat emails.txt | php cli.php > emails.anon.txt

Which produces emails.anon.txt:

a***c@e***g
a***n@gmail.com
j***e@e***m
n***y@b***o
r***t@googlemail.com
w***r@hotmail.co.uk
w***r@outlook.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固