marcel-strahl/laminas-temporary-email-validator

add temporary email address validator for laminas / mezzio

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

This package is auto-updated.

Last update: 2024-04-05 23:44:52 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.