PHPackages                             northrook/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. northrook/email-validator

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

northrook/email-validator
=========================

An email validator.

039PHP

Since Jun 22Pushed 1y agoCompare

[ Source](https://github.com/northrook/email-validator)[ Packagist](https://packagist.org/packages/northrook/email-validator)[ RSS](/packages/northrook-email-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Email Validator
===============

[](#email-validator)

A wrapper for the [Egulias Email Validator](https://github.com/egulias/email-validator).

Caution

This package is still in development.

Do **not** use it in production.

Slated features:

- Validate email addresses using [Egulias Email Validator](https://github.com/egulias/email-validator).
- Domain filtering
- IP filtering

Filters allow for partial or exact matching against a white or black list of domains and/or IP addresses.

The blacklist can be fed from a centralized source, such as a database or a file.

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

[](#installation)

```
composer require northrook/email-validator
```

Usage
-----

[](#usage)

```
use Northrook\EmailValidator;

$validator = new EmailValidator();

$validator->isValid( 'test@example.com' ); // true

$validator->isValid( 'test@example!com' ); // false
```

When the `isValid` method returns `false`, the following properties are available for the failed validation:

```
$validator->isValid;  // bool
$validator->warnings; // array of warnings encountered during validation.
$validator->error;    // ?InvalidEmail object if invalid, else `null`.
$validator->reason;   // ?Reason object if invalid, else `null`.
```

License
-------

[](#license)

[MIT](https://github.com/northrook/email-validator/blob/master/LICENSE)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/6ea0cb455f9912f9649c15f87435485f0e5ee9197e8cd767680689bb75cd2888?d=identicon)[martinlikescoffee](/maintainers/martinlikescoffee)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/northrook-email-validator/health.svg)

```
[![Health](https://phpackages.com/badges/northrook-email-validator/health.svg)](https://phpackages.com/packages/northrook-email-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)
