It is compatible and tested with PHP 8.+ on Laminas.
composer require marcel-strahl/laminas-temporary-email-validator
The following is an attribute example:
namespace Application\Annotation;
use MarcelStrahl\LaminasTemporaryEmailValidator\Validator\IsNotTemporaryEmailValidator;
#[Annotation\Name("contact")]
class Contact
{
#[Annotation\Validator(IsNotTemporaryEmailValidator::class)]
public $email;
}
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: https://github.com/jprangenbergde/temporary-email-detection
- Marcel Strahl info@marcel-strahl.de
This bundle is under the MIT license.
For the whole copyright, see the LICENSE file distributed with this source code.