Email — Checker Php !!link!!
$domain = substr(strrchr($email, "@"), 1); $freeProviders = [ 'gmail.com', 'yahoo.com', 'outlook.com', 'hotmail.com', 'aol.com', 'protonmail.com', 'mail.com', 'gmx.com' ]; return in_array($domain, $freeProviders);
Would you like a ready-to-use Composer package example or a Laravel validation rule extension for this email checker? email checker php
Email addresses can have + , - , . , and even quoted strings. The built-in filter handles edge cases correctly. $domain = substr(strrchr($email
public function getErrors(): array
$list = ['mailinator.com', 'guerrillamail.com']; // expand as needed return in_array($domain, $list); $freeProviders = [ 'gmail.com'
return $this->errors;