Email Verification Library
Using this library, you can verify if email entered is real or not. By real it is meant that it will be validated not just in a synctactic way, but also against SMTP server.
Through composer: composer require developernode/email-verify
use DeveloperNode\Email\EmailVerifier; // ... $verifier = new EmailVerifier(); $verifier->CheckEmail("email@example.com"); $verifier->CheckEmail("firstname.lastname@example.org"); $verifier->CheckEmail("email@example.com"); // ...
EmailVerifier implements IEmailVerifier interface, thus it will be easier to mock logic if required, and integrate it into your own code without violating SOLID development guidelines.