PHP Classes

PHP EMail Check: Validate email addresses using DNS or find typos

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 376 All time: 6,758 This week: 56Up
Version License PHP version Categories
email-check 1.1.21MIT/X Consortium ...5.3Email
Collaborate with this project 

Author

email-check - github.com

Description

This class can validate email addresses using DNS or find typos.

It can perform several types of checks to determine if a given email address is valid and reachable.

Currently it can check if the syntax of the address is correct, determine if a email is one of those typically used as examples, or from disposable domains for temporary address, or may have a common typo, or does not have valid DNS records.

Picture of Lars Moelleken
  Performance   Level  
Name: Lars Moelleken <contact>
Classes: 25 packages by
Country: Germany Germany
Age: 36
All time rank: 62140 in Germany Germany
Week rank: 41 Up3 in Germany Germany Up
Innovation award
Innovation award
Nominee: 11x

Winner: 1x

Recommendations

verify email if it fake or real
i wanna verify email if it fake or real

Documentation

Build Status codecov.io Codacy Badge Latest Stable Version Total Downloads License Donate to this project using Paypal Donate to this project using Patreon

:envelope: E-Mail Address Validator for PHP

Warning

The best way to validate an e-mail address is still to send a duplicate opt-in-mail, when the user clicks on the link, it was a valid e-mail address!

Installation

The recommended installation way is through Composer.

$ composer require voku/email-check

Usage:

Example 1:

$emailCheck = EmailCheck::isValid("lars@moelleken.org");

// true

Example 2: (check for example-domain)

$emailCheck = EmailCheck::isValid("lars@example.com", true);

// false

Example 3: (check for typo in domain)

$emailCheck = EmailCheck::isValid("lars@-tonline.de", false, true);

// false

Example 4: (check for temporary-domain)

$emailCheck = EmailCheck::isValid("lars@30minutemail.com", false, false, true);

// false

Unit Test:

1) Composer is a prerequisite for running the tests.

composer install

2) The tests can be executed by running this command from the root directory:

./vendor/bin/phpunit

Support

For support and donations please visit Github | Issues | PayPal | Patreon.

For status updates and release announcements please visit Releases | Twitter | Patreon.

For professional support please contact me.

Thanks

  • Thanks to GitHub (Microsoft) for hosting the code and a good infrastructure including Issues-Managment, etc.
  • Thanks to IntelliJ as they make the best IDEs for PHP and they gave me an open source license for PhpStorm!
  • Thanks to Travis CI for being the most awesome, easiest continous integration tool out there!
  • Thanks to StyleCI for the simple but powerfull code style check.
  • Thanks to PHPStan && Psalm for relly great Static analysis tools and for discover bugs in the code!

  Files folder image Files (20)  
File Role Description
Files folder image.github (3 files)
Files folder imagesrc (1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.php_cs Example Example script
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file renovate.json Data Auxiliary data

  Files folder image Files (20)  /  .github  
File Role Description
  Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
  Accessible without login Plain text file FUNDING.yml Data Auxiliary data
  Accessible without login Plain text file ISSUE_TEMPLATE.md Data Auxiliary data

  Files folder image Files (20)  /  src  
File Role Description
Files folder imagevoku (1 directory)

  Files folder image Files (20)  /  src  /  voku  
File Role Description
Files folder imagehelper (1 file, 1 directory)

  Files folder image Files (20)  /  src  /  voku  /  helper  
File Role Description
Files folder imagedata (3 files)
  Plain text file EmailCheck.php Class Class source

  Files folder image Files (20)  /  src  /  voku  /  helper  /  data  
File Role Description
  Accessible without login Plain text file domainsExample.php Aux. Auxiliary script
  Accessible without login Plain text file domainsTemporary.php Aux. Auxiliary script
  Accessible without login Plain text file domainsTypo.php Aux. Auxiliary script

  Files folder image Files (20)  /  tests  
File Role Description
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Plain text file EmailCheckTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:376
This week:0
All time:6,758
This week:56Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:832