PHPackages                             phpauth/phpauth.email-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. phpauth/phpauth.email-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

phpauth/phpauth.email-validator
===============================

PHPAuth E-Mail Validator

0.1.1(3y ago)310411MITPHPPHP &gt;=7.2.0

Since Aug 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/PHPAuth/PHPAuth.EMailValidator)[ Packagist](https://packagist.org/packages/phpauth/phpauth.email-validator)[ Docs](https://phpauth.github.io/PHPAuth/)[ RSS](/packages/phpauth-phpauthemail-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

PHPAuth.EmailValidator
======================

[](#phpauthemailvalidator)

Custom e-mail validator (for PHPAuth)

Use with PHPAuth
----------------

[](#use-with-phpauth)

```
require_once __DIR__ . '/path/to/vendor/autoload.php';

// ...

$config = new \PHPAuth\Config($pdo);

$config = $config->setEMailValidator(static function ($email) {
    return \PHPAuth\EMailValidator::isValid($email);
});
```

Standalone usage:
-----------------

[](#standalone-usage)

```
require_once __DIR__ . '/path/to/vendor/autoload.php';

$l = [
    'karel.wintersky@gmail.com',
    'foo@0d00.com',
    'xxxx'
];

foreach ($l as $e) {
    var_dump(\PHPAuth\EMailValidator::check($e)->state);
    echo "{$e} ==> " . ( \PHPAuth\EMailValidator::isValid($e) ? 'VALID' : 'INVALID' ) . PHP_EOL;
}
```

FAQ
===

[](#faq)

Q: Why static class? A: Email validator uses internal cache for storing loaded domains. It can be useful for sequential checks.

Thanks to
=========

[](#thanks-to)

-
-
- legacy PHPAuth `domains.json` and legacy `database_emails_banned.sql`
-

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity32

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1362d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2164874?v=4)[Karel Wintersky](/maintainers/KarelWintersky)[@KarelWintersky](https://github.com/KarelWintersky)

---

Top Contributors

[![KarelWintersky](https://avatars.githubusercontent.com/u/2164874?v=4)](https://github.com/KarelWintersky "KarelWintersky (2 commits)")

---

Tags

email-validatorphpauthvalidation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpauth-phpauthemail-validator/health.svg)

```
[![Health](https://phpackages.com/badges/phpauth-phpauthemail-validator/health.svg)](https://phpackages.com/packages/phpauth-phpauthemail-validator)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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