laravel-smtp-email-verifier
Laravel SMTP Email verifier. Simple email verifier for Laravel that tries to check with SMTP server if the given email addresses exists or not, (*1)
Installation
Require the package in composer.json :, (*2)
"skmetaly/laravel-smtp-email-verifier": "dev-master"
In config/app.php add providers, (*3)
'Skmetaly\EmailVerifier\EmailVerifierServiceProvider'
In aliases, (*4)
'EmailVerifier'=>'Skmetaly\EmailVerifier\Facades\EmailVerifier'
Publish the config, (*5)
php artisan vendor:publish --tag=email-verifier
If you want the test command, register it in app/Console/Kernel, (*6)
'Skmetaly\EmailVerifier\Commands\TestEmailValidator'
Usage
Test command
php artisan tem:email <email-address>
Email Validator
Currently you can ue EmaiLValidator with a string as an email address or an array containing email addresses, (*7)
EmailVerifier::verify('foo@bar');
Will return true if the validator was able to connect and to validate the email address, (*8)
EmailVerifier::verify(['foo@bar','baz@bar','baz@foo');
Will return an array with all the validated email addresses, (*9)
Current status
Alpha, (*10)
Licence
MIT, (*11)