Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check If Email Exists (PHP)

This is a PHP library to check if an email address exists and is deliverable.

Installation

composer require shyim/check-if-email-exists

Usage

CLI

# After cloning the repo
./bin/check-email test@example.com

# After composer install (global or local)
vendor/bin/check-email test@example.com

Programmatic API

use Shyim\CheckIfEmailExists\EmailChecker;

require 'vendor/autoload.php';

$checker = new EmailChecker();
$result = $checker->check('test@example.com');

print_r($result->toArray());

Features

  • Syntax validation
  • DNS MX record check
  • SMTP connection verification (HELO, MAIL FROM, RCPT TO)
  • Catch-all detection
  • Role account detection
  • Disposable email detection

License

MIT

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages