PHPackages                             voku/email-check - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. voku/email-check

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

voku/email-check
================

email-check (syntax, dns, trash, ...) library

3.2.0(2mo ago)514.2M↓27.2%14[1 issues](https://github.com/voku/email-check/issues)[3 PRs](https://github.com/voku/email-check/pulls)4MITPHPPHP &gt;=7.0.0CI passing

Since Jul 23Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/voku/email-check)[ Packagist](https://packagist.org/packages/voku/email-check)[ Docs](https://github.com/voku/email-check)[ Fund](https://www.paypal.me/moelleken)[ GitHub Sponsors](https://github.com/voku)[ RSS](/packages/voku-email-check/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (44)Used By (4)

[![CI](https://github.com/voku/email-check/actions/workflows/ci.yml/badge.svg)](https://github.com/voku/email-check/actions/workflows/ci.yml)[![codecov.io](https://camo.githubusercontent.com/f7e1a5682fb7ce4e76118cb42776988f4b9f38ec1a8b16d6fff5ac7bce8c514f/687474703a2f2f636f6465636f762e696f2f6769746875622f766f6b752f656d61696c2d636865636b2f636f7665726167652e7376673f6272616e63683d6d6173746572)](http://codecov.io/github/voku/email-check?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/12199702d71f21cdc697552dba9a1a30ff023a498c4bbfca8f8a08520c563693/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3531326133646332363462373435623138626161316232333834373062316430)](https://www.codacy.com/app/voku/email-check)[![Latest Stable Version](https://camo.githubusercontent.com/537cabe4a770557e5a29a5871338b2c39be94b2e0552b5df59908a5b8815c912/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f656d61696c2d636865636b2f762f737461626c65)](https://packagist.org/packages/voku/email-check)[![Total Downloads](https://camo.githubusercontent.com/592beadbfec02bdd8ccd52e7811e851ff0b2fb4b18facfe5e1e9f5bfe45cf3fb/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f656d61696c2d636865636b2f646f776e6c6f616473)](https://packagist.org/packages/voku/email-check)[![License](https://camo.githubusercontent.com/f7dee56cc416375341cdb07788a09b875f5adf584d5881c46a55c9763fe0cc66/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f656d61696c2d636865636b2f6c6963656e7365)](https://packagist.org/packages/voku/email-check)[![Donate to this project using Paypal](https://camo.githubusercontent.com/0d6e4d8b50b5983a58205941b1a581b1305903393b7a39da574e3f60af3c7f5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e737667)](https://www.paypal.me/moelleken)[![Donate to this project using Patreon](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://www.patreon.com/voku)

✉️ E-Mail Address Validator for PHP
===================================

[](#envelope-e-mail-address-validator-for-php)

### Warning

[](#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

[](#installation)

The recommended installation way is through [Composer](https://getcomposer.org).

```
$ composer require voku/email-check
```

### Usage:

[](#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

```

Example 5: (disable punycode conversion)

```
$emailCheck = EmailCheck::isValid("Lars@Mölleken.ORG", false, false, false, false, false);

// false

```

### Unit Test:

[](#unit-test)

1. [Composer](https://getcomposer.org) and PHP 7.4+ are prerequisites for running the tests.

```
composer install

```

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

```
./vendor/bin/phpunit
```

### Support

[](#support)

For support and donations please visit [Github](https://github.com/voku/email-check/) | [Issues](https://github.com/voku/email-check/issues) | [PayPal](https://paypal.me/moelleken) | [Patreon](https://www.patreon.com/voku).

For status updates and release announcements please visit [Releases](https://github.com/voku/email-check/releases) | [Twitter](https://twitter.com/suckup_de) | [Patreon](https://www.patreon.com/voku/posts).

For professional support please contact [me](https://about.me/voku).

### Thanks

[](#thanks)

- Thanks to [GitHub](https://github.com) (Microsoft) for hosting the code and a good infrastructure including Issues-Managment, etc.
- Thanks to [IntelliJ](https://www.jetbrains.com) as they make the best IDEs for PHP and they gave me an open source license for PhpStorm!
- Thanks to [GitHub Actions](https://github.com/features/actions) for the CI infrastructure.
- Thanks to [StyleCI](https://styleci.io/) for the simple but powerful code style check.
- Thanks to [PHPStan](https://github.com/phpstan/phpstan) &amp;&amp; [Psalm](https://github.com/vimeo/psalm) for really great Static analysis tools and for discover bugs in the code!

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity56

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 74% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~145 days

Recently: every ~761 days

Total

28

Last Release

71d ago

Major Versions

0.1.2 → 1.0.02015-09-16

1.1.12 → 2.0.02017-12-01

2.0.0 → 3.0.02017-12-23

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

2.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6456fe693db197c458272cb758bf78958bc7d3e787ccd59db4bf3cf41654316a?d=identicon)[voku](/maintainers/voku)

---

Top Contributors

[![voku](https://avatars.githubusercontent.com/u/264695?v=4)](https://github.com/voku "voku (77 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (17 commits)")[![anhofmann](https://avatars.githubusercontent.com/u/3919068?v=4)](https://github.com/anhofmann "anhofmann (3 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

emailemail-validationhacktoberfestphpmailemailcheck-emailmail-checkvalidate-email-addressvalidate-emailvalidate-mail

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/voku-email-check/health.svg)

```
[![Health](https://phpackages.com/badges/voku-email-check/health.svg)](https://phpackages.com/packages/voku-email-check)
```

###  Alternatives

[symfony/mime

Allows manipulating MIME messages

2.8k716.9M1.4k](/packages/symfony-mime)[zbateson/mail-mime-parser

MIME email message parser

54753.3M91](/packages/zbateson-mail-mime-parser)[ddeboer/imap

Object-oriented IMAP for PHP

9364.1M15](/packages/ddeboer-imap)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[coconutcraig/laravel-postmark

Laravel package for sending mail via the Postmark API

2173.2M1](/packages/coconutcraig-laravel-postmark)[daveearley/daves-email-validation-tool

An easy to use, accurate-ish &amp; extensible email validation library for PHP 7+

284345.7k2](/packages/daveearley-daves-email-validation-tool)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
