marcel-strahl/laminas-temporary-email-validator

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.

add temporary email address validator for laminas / mezzio

v1.0.0 2021-06-24 22:37 UTC

This package is auto-updated.

Last update: 2021-10-05 18:11:07 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock License Gitworkflow

It is compatible and tested with PHP 8.+ on Laminas.

Installation:

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;
}

Hint:

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

Credits

License

This bundle is under the MIT license.
For the whole copyright, see the LICENSE file distributed with this source code.