This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

dev-master 2019-02-07 20:15 UTC

This package is auto-updated.

Last update: 2021-05-05 11:22:09 UTC


Recognition of temporary e-mail addresses as validator for Symfony


composer install marcel-strahl/temporary-email-validator-sf

##How to use

Note: It is strongly recommended to use the email constraint first, as this constraint only checks for a temporary email address and not if the value is a valid email address.

use TemporaryEmailValidation\Validator\Contraints\IsNotTemporaryEmail;

$constraint = new IsNotTemporaryEmail();
// $constraint->message = your message

// use the validator to validate the value
$error = $this
    ->validate('', $constraint);

$errorMessage = $errorList[0]->getMessage(); // The e-mail address "" you enter is a temporary e-mail address.


I am not the creator of the "Temporary Email Detection" but have changed the following package into a Symfony Validator!

Main Package Temporary E-Mail Detection: