Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

add temporary email address validator for Laminas and Mezzio

License

Notifications You must be signed in to change notification settings

Dropelikeit/laminas-temporary-email-validator

Repository files navigation

Recognition of temporary e-mail addresses as validator for Laminas and Mezzio

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.

About

add temporary email address validator for Laminas and Mezzio

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages