定制 andreaskiessling/validemail 二次开发

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

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

andreaskiessling/validemail

最新稳定版本:v1.0.0

Composer 安装命令:

composer require andreaskiessling/validemail

包简介

Extends the TYPO3 email validation, see https://forge.typo3.org/issues/102629 and https://github.com/egulias/EmailValidator/issues/359

关键字:

README 文档

README

The validemail extension extends TYPO3's standard email validation with an improved TLD validation. It adds a check for the domain, so that at least one dot is present after the @-sign.

How to test in your setup

When doing a manual test, the browser validation will prevent you from submitting the form, if the email address is invalid.

Bots just send the form data to the action URL of the form tag, and then the \TYPO3\CMS\Core\Utility\GeneralUtility::validEmail method is usually used to validate the email address. This method uses egulias/email-validator which does not check if the domain contains a dot.

Warning:

Do not install this package if you send emails to local addresses or in an intranet environment that do not have a dot in the domain part.

Test on your own

If you want to test this behavior yourself, deactivate JavaScript in your browser, which will also disable the browser validation. Then submit your form with something like "test@example" - this will be accepted by the validEmail check without this extension.

See these issues for additional information:

Installation

Via Composer (recommended)

composer require andreaskiessling/validemail

Testing

Running the unit tests with https://github.com/nektos/act and g1a/composer-test-scenarios locally:

act --matrix php-version:7.4 --action-offline-mode
act --matrix php-version:8.1 --action-offline-mode
act --matrix php-version:8.2 --action-offline-mode
act --matrix php-version:8.3 --action-offline-mode
act --matrix php-version:8.4 --action-offline-mode

This extension will hopefully be obsolete once egulias/EmailValidator#359 is solved.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-08-19