首页 > 资源库 > 开源项目
PHP Email Validator

PHP Email Validator

电子邮件验证器库基于 PHP 内置的 filter_var($emailAddress, FILTER_VALIDATE_EMAIL); 构建,添加了默认 MX 记录检查。它还针对一次性电子邮件地址、免费电子邮件地址提供商以及自定义禁用域名列表提供了额外的验证。

PHP Email Validator

简介

The PHP Email Validator will validate an email address for all or some of the following conditions:
PHP 电子邮件验证器将验证电子邮件地址是否符合以下全部或部分条件:

  • is in a valid format (supports both RFC 5321 and RFC 5322)
    采用有效格式(支持 RFC 5321 和 RFC 5322)
  • has configured MX records (optional)
    已配置 MX 记录(可选)
  • is not a disposable email address (optional)
    不是一次性电子邮件地址(可选)
  • is not a free email account (optional)
    不是免费电子邮件帐户(可选)
  • is not a banned email domain (optional)
    不是被禁止的电子邮件域名(可选)
  • flag Gmail accounts that use the "plus trick" and return a sanitized email address
    标记使用“加号技巧”的 Gmail 帐户并返回已清理的电子邮件地址

The Email Validator is configurable, so you have full control over how much validation will occur.
电子邮件验证器是可配置的,因此您可以完全控制发生的验证量。

数据分析

177 总浏览量
2025/06/15 发布时间
运行中 当前状态