Skip to content
✉️ E-Mail Address Validator (syntax, dns, trash, typo)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github [*]: add github config files May 24, 2019
src/voku/helper [+]: replace "true/punycode" with "symfony/polyfill-intl-idn" Jan 2, 2019
tests
.editorconfig [+] init Jul 23, 2015
.gitattributes [*]: add github config files May 24, 2019
.gitignore [*]: add github config files May 24, 2019
.scrutinizer.yml [+] init Jul 23, 2015
.styleci.yml Update .styleci.yml Aug 21, 2015
.travis.yml Update .travis.yml Oct 18, 2018
CHANGELOG.md [*]: update the changelog Jan 2, 2019
LICENSE Initial commit Jul 23, 2015
README.md Update README.md Jan 10, 2019
composer.json Merge remote-tracking branch 'origin/master' Jan 2, 2019
phpcs.php_cs [+]: replace "true/punycode" with "symfony/polyfill-intl-idn" Jan 2, 2019
phpunit.xml [!]: "php": ">=7.0" Dec 1, 2017

README.md

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

✉️ 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
  1. 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!
You can’t perform that action at this time.