PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-10-10 (7 days ago) RSS 2.0 feedNot enough user ratingsTotal: 200 This week: 15All time: 8,012 This week: 55Up
Version License PHP version Categories
email-check 1.1.7MIT/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.

Recommendations

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

  Performance   Level  
Name: Lars Moelleken <contact>
Classes: 17 packages by
Country: Germany Germany
Age: 29
All time rank: 141793 in Germany Germany
Week rank: 8 Up1 in Germany Germany Up
Innovation award
Innovation award
Nominee: 8x

Details

Build Status codecov.io Scrutinizer Code Quality Codacy Badge SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version PHP 7 ready License

E-Mail Address Validator for PHP

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
  Files folder image Files  
File Role Description
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 composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

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

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

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

  Files folder image Files  /  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  /  tests  
File Role Description
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Plain text file EmailCheckTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:200
This week:15
All time:8,012
This week:55Up