PHPackages                             masroore/verifyemail - 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. masroore/verifyemail

ActiveLibrary

masroore/verifyemail
====================

Provides means for verification of e-mail addresses.

53826[1 issues](https://github.com/masroore/verifyemail/issues)PHP

Since Apr 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/masroore/verifyemail)[ Packagist](https://packagist.org/packages/masroore/verifyemail)[ RSS](/packages/masroore-verifyemail/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

VerifyEmail: PHP Email Address Verifier
=======================================

[](#verifyemail-php-email-address-verifier)

Tired of those pesky fake email addresses in your submission forms?

`EmailAddressVerifier` class lets you verify e-mail addresses for correct syntax and, optionally, for existence.

The following validation levels can be set with `EmailAddressVerifier::validationLevel` property (defined by `AddressValidationLevel` class):

- **SyntaxCheck** - validate email address by performing syntax check.
- **DnsQuery** - DNS MX lookup for domain part of the the e-mail address string, to find out the SMTP MX host responsible for e-mail delivery to the domain.
- **SmtpConnection** - test connection to the SMTP MX host.
- **SendAttempt** - test connection, sending `EHLO/HELO` and `MAIL FROM` commands, and submitting the given e-mail address string in `RCPT TO` command. This mimics normal send attempt, just without sending actual message data. If the server accepts the recipient and says "Yes, I'm ready to receive message data", the component just resets the connection and disconnects, reporting that the address is correct.

### How to install (using composer):

[](#how-to-install-using-composer)

Install using composer...

```
composer require "masroore/verifyemail"

```

In plain old PHP:

```
require 'vendor/autoload.php';
```

Usage basics: Check email address
---------------------------------

[](#usage-basics-check-email-address)

To perform PHP email validation, import the `VerifyEmail` namespace in your code:

```
use VerifyEmail\EmailAddressVerifier;
use VerifyEmail\Utils;
```

To verify an e-mail address in your PHP project, use `EmailAddressVerifier::verify()` method.

By default, EmailAddressVerifier.validationLevel is already SendAttempt (the most advanced e-mail address check available). Therefore we don't need to explicitly set this mode to perform all the checks possible against an e-mail address.

```
$verifier = new EmailAddressVerifier();
$verifier->setMailFrom('sender@domain.tld');
$verifier->setHelloDomain('domain.tld');
$verifier->setValidationLevel(AddressValidationLevel::SendAttempt);
$result = $verifier->verify('check_email@domain.tld');

if ($result === AddressValidationLevel::OK) {
    echo 'Email verified';
}
```

The previous sample checked valid email address by instantiating the `EmailAddressVerifier` object. For quick form validation in your PHP project you may use the `EmailAddressVerifier::validate()` convenience method instead:

```
$level = null;
if (EmailAddressVerifier::validate($email, $level)) {
    echo 'Email verified';
}
```

PHP email checker, email tester, email verifier, email validation, check email address, verify email address, free email verifier, test email address, valid email address

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/200963?v=4)[Masroor Ehsan](/maintainers/masroore)[@masroore](https://github.com/masroore)

---

Top Contributors

[![masroore](https://avatars.githubusercontent.com/u/200963?v=4)](https://github.com/masroore "masroore (7 commits)")

---

Tags

email-verifierphpsmtp-mxverifyemail

### Embed Badge

![Health badge](/badges/masroore-verifyemail/health.svg)

```
[![Health](https://phpackages.com/badges/masroore-verifyemail/health.svg)](https://phpackages.com/packages/masroore-verifyemail)
```

PHPackages © 2026

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