Skip to content

Laravel SMTP Email Validator. Simple email validator for laravel that tries to check with SMTP server if the given email addresses exists or not

License

Notifications You must be signed in to change notification settings

bomas13/laravel-smtp-email-verifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation

Require the package in composer.json :

"skmetaly/laravel-smtp-email-verifier": "dev-master"

In config/app.php add providers

'Skmetaly\EmailVerifier\EmailVerifierServiceProvider'

In aliases

'EmailVerifier'=>'Skmetaly\EmailVerifier\Facades\EmailVerifier'

Publish the config

php artisan vendor:publish --tag=email-verifier

If you want the test command, register it in app/Console/Kernel

'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

EmailVerifier::verify('foo@bar');

Will return true if the validator was able to connect and to validate the email address

EmailVerifier::verify(['foo@bar','baz@bar','baz@foo');

Will return an array with all the validated email addresses

Current status

Alpha

Licence

MIT

About

Laravel SMTP Email Validator. Simple email validator for laravel that tries to check with SMTP server if the given email addresses exists or not

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%