marcel-strahl / temporary-email-validator
A temporary email address validator for Laravel
Installs: 189
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/marcel-strahl/temporary-email-validator
Requires
- php: ^8.0
- illuminate/console: ^8|^9
- illuminate/routing: ^8|^9
- illuminate/support: ^8|^9
- jprangenbergde/temporary-email-detection: ^1.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- orchestra/testbench: ^6.18|^7.5
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^9.5
README
Recognition of temporary e-mail addresses as validator rule for Laravel
Installation:
composer require marcel-strahl/temporary-email-validator
In versions from 5.3+ you don't need the following step, because we load our package with Discover in Laravel. Add the ServiceProvider to config/app.php
MarcelStrahl\TemporaryValidator\TemporaryValidatorServiceProvider::class,
Add the rule (it's the rule with the name not_temporary_email) like any other rule in Laravel to the validator where you want to use it
$rules = ['required|email|not_temporary_email'];
Hint:
I am not the creator of the "Temporary Email Detection" but have changed the following package into a Laravel Validator rule!
Main Package
Temporary E-Mail Detection
:
https://github.com/jprangenbergde/temporary-email-detection