PHP code example of v3labs / company-email-validator
1. Go to this page and download the library: Download v3labs/company-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/ */
v3labs / company-email-validator example snippets
$validator = new \V3labs\Validator\CompanyEmailValidator(
checkDns: false, // default
additionalDomains: [] // default
);
$isCompanyEmail1 = $validator->isValid('[email protected]'); // false
$isCompanyEmail2 = $validator->isValid('[email protected]'); // true