PHPackages                             plumpboy/email-validate - 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. plumpboy/email-validate

ActiveLibrary

plumpboy/email-validate
=======================

A library for validating email via SMTP, extends from https://github.com/semplon/php-smtp-email-validation

v1.1.4(5y ago)329CC-BY-2.0PHPPHP &gt;=5.5

Since Jan 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/plumpboy/email-validate)[ Packagist](https://packagist.org/packages/plumpboy/email-validate)[ RSS](/packages/plumpboy-email-validate/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

**A Library extending **

What It Does ?
==============

[](#what-it-does-)

> Check if email address exists via SMTP.

Requirement
-----------

[](#requirement)

- php &gt;= 5.5

Installation
------------

[](#installation)

- composer require plumpboy/email-validate

Usage
-----

[](#usage)

```
...
use Plumpboy\EmailValidate\SMTPEmailValidator;
...
	// the email to validate
	$email = 'user@example.com'; // $email can be array('user@example.com', 'user1@example.com')
	// an optional sender
	$sender = 'user@mydomain.com';
	// instantiate the class
	$SMTPValidator = new SMTPEmailValidator();
	// turn on debugging if you want to view the SMTP transaction
	$SMTPValidator->debug = true;
	// do the validation
	$results = $SMTPValidator->validate($email, $sender);
	// view results
	echo $email.' is '.($results ? 'valid' : 'invalid')."\n"; // $results[$email] when there are many emails

	// send email?
	if ($results) { // or $results['user@example.com'] if you pass many emails
		//mail($email, 'Confirm Email', 'Please reply to this email to confirm', 'From:'.$sender."\r\n"); // send email
	} else {
		echo 'The email addresses you entered is not valid';
	}
```

### Laravel

[](#laravel)

For projects use laravel version &lt; 5.5, add below code into **config/app.php**.

```
...
'providers' => [
	...
    Plumpboy\EmailValidate\EmailValidateServiceProvider::class,
    ...
],
...
```

You also can use below syntax in laravel.

```
$result = email_exists($emails, $sender); // use helper
```

```
...
use Plumpboy\EmailValidate\EmailValidator;
...
$result = EmailValidator::validate($email, $sender); // use facade
```

```
$result = \EmailValidator::validate($email, $sender); // or alias
```

if you do not pass param $sender, library will use `config('mail.from.address')`.

Contribute
----------

[](#contribute)

- Fork the repository and make changes on your fork in a feature branch.
- Commit messages must start with a capitalized and short summary.
- After every commit, make sure the test suite passes.
- Contributor sends pull request to release/develop branch, ask another contributor to check if possible.
- Don't push private keys, logs or any unnecessary files to git repository
- Merge when pull request got 2 OK from contributors and CI build is green.
- Merge develop to master to release final version.

License
-------

[](#license)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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 ~1 days

Total

3

Last Release

1952d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11485641?v=4)[Phạm Trí Trung](/maintainers/plumpboy)[@plumpboy](https://github.com/plumpboy)

### Embed Badge

![Health badge](/badges/plumpboy-email-validate/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[symfony/mailer

Helps sending emails

1.6k368.1M955](/packages/symfony-mailer)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[illuminate/validation

The Illuminate Validation package.

18936.7M1.4k](/packages/illuminate-validation)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

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