Temporary Emails Validator
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
Symfony validator for temporary emails, based on andreis/disposable., (*2)
Install
Via Composer, (*3)
``` bash
$ composer require emanueleminotto/temporary-email-validator, (*4)
## Usage
``` php
use EmanueleMinotto\TemporaryEmailValidator\NotTemporaryEmail;
$constraint = new NotTemporaryEmail();
// $constraint->message = your message
// use the validator to validate the value
$errorList = $this
->get('validator')
->validate('example@mail-temporaire.fr', $constraint);
$errorMessage = $errorList[0]->getMessage(); // The temporary email "example@mail-temporaire.fr" is not allowed.
Change log
Please see CHANGELOG for more information on what has changed recently., (*5)
Testing
bash
$ composer test, (*6)
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*7)
Security
If you discover any security related issues, please email minottoemanuele@gmail.com instead of using the issue tracker., (*8)
Credits
License
The MIT License (MIT). Please see License File for more information., (*9)