PHP code example of konstantin-dmitrienko / email-validator
1. Go to this page and download the library: Download konstantin-dmitrienko/email-validator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
konstantin-dmitrienko / email-validator example snippets
use KonstantinDmitrienko\EmailValidator\Email\Email;
use KonstantinDmitrienko\EmailValidator\File\File;
$validEmails = Email::validateEmails($emails);
// Save valid emails in a new flle
File::putLinesInFile($validEmails, 'valid-emails.txt');