PHPackages                             zero-to-prod/validate-email - 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. zero-to-prod/validate-email

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

zero-to-prod/validate-email
===========================

Validates an email

v71.1.0(8mo ago)016.5k↓26.8%2MITDockerfilePHP &gt;=7.1CI passing

Since Nov 12Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/zero-to-prod/validate-email)[ Packagist](https://packagist.org/packages/zero-to-prod/validate-email)[ Docs](https://github.com/zero-to-prod/validate-email)[ Fund](https://github.com/sponsors/zero-to-prod)[ RSS](/packages/zero-to-prod-validate-email/feed)WikiDiscussions main Synced 1mo ago

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

Zerotoprod\\ValidateEmail
=========================

[](#zerotoprodvalidateemail)

[![](art/logo.png)](art/logo.png)

[![Repo](https://camo.githubusercontent.com/9a90a3efeee26aed7d7f2feee9cd84566a26f9c362cc773b184d076210906e1c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769746875622d677261793f6c6f676f3d676974687562)](https://github.com/zero-to-prod/validate-email)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/ca147f079fc19138c26019d1c2e3dd63868e9ebb4a11c170bb871d58308fefc5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c2f746573742e796d6c3f6c6162656c3d74657374)](https://github.com/zero-to-prod/validate-email/actions)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/32f609a8af328bd4fd4b6800994076a892abce4ef6081b6ee5eab670d8fd26a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c2f6261636b77617264735f636f6d7061746962696c6974792e796d6c3f6c6162656c3d6261636b77617264735f636f6d7061746962696c697479)](https://github.com/zero-to-prod/validate-email/actions)[![Packagist Downloads](https://camo.githubusercontent.com/6a0e9fa53d4f07c6799997e8b669cbcb8a7a39a3b059125f0d57178e94b755c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c3f636f6c6f723d626c7565)](https://packagist.org/packages/zero-to-prod/validate-email/stats)[![php](https://camo.githubusercontent.com/0129f84fe6f2a178dfdaa315aa532aa425e0fa17f49dc1601bb5f9410a0bd842/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c2e7376673f636f6c6f723d707572706c65)](https://packagist.org/packages/zero-to-prod/validate-email/stats)[![Packagist Version](https://camo.githubusercontent.com/b952869804c11b44967339fc6b29513c444c27a48ba5465b5a176d9338aa909c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c3f636f6c6f723d663238643161)](https://packagist.org/packages/zero-to-prod/validate-email)[![License](https://camo.githubusercontent.com/adb1225033702517a2b876f864ee8754aad319d3f365321f125ece12a520a249/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c3f636f6c6f723d70696e6b)](https://github.com/zero-to-prod/validate-email/blob/main/LICENSE.md)[![wakatime](https://camo.githubusercontent.com/00b4a049e5b3ee5e8ebc64f97b3a9d227856a1dfc15bc41c110ff9386ad44702/68747470733a2f2f77616b6174696d652e636f6d2f62616467652f6769746875622f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c2e737667)](https://wakatime.com/badge/github/zero-to-prod/validate-email)[![Hits-of-Code](https://camo.githubusercontent.com/943cbbe20ab1a1b079f077aa9ce378ec1f58d608dd7d456f8943c4b9b3bf8235/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f7a65726f2d746f2d70726f642f76616c69646174652d656d61696c3f6272616e63683d6d61696e)](https://hitsofcode.com/github/zero-to-prod/validate-email/view?branch=main)

Contents
--------

[](#contents)

- [Introduction](#introduction)
- [Requirements](#requirements)
- [Installation](#installation)
- [Documentation Publishing](#documentation-publishing)
    - [Automatic Documentation Publishing](#automatic-documentation-publishing)
- [Usage](#usage)
- [Local Development](./LOCAL_DEVELOPMENT.md)
- [Contributing](#contributing)

Introduction
------------

[](#introduction)

Validates an email.

Requirements
------------

[](#requirements)

- PHP 7.1 or higher.

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

[](#installation)

Install `Zerotoprod\ValidateEmail` via [Composer](https://getcomposer.org/):

```
composer require zero-to-prod/validate-email
```

This will add the package to your project’s dependencies and create an autoloader entry for it.

Documentation Publishing
------------------------

[](#documentation-publishing)

You can publish this README to your local documentation directory.

This can be useful for providing documentation for AI agents.

This can be done using the included script:

```
# Publish to default location (./docs/zero-to-prod/validate-email)
vendor/bin/zero-to-prod-validate-email

# Publish to custom directory
vendor/bin/zero-to-prod-validate-email /path/to/your/docs
```

### Automatic Documentation Publishing

[](#automatic-documentation-publishing)

You can automatically publish documentation by adding the following to your `composer.json`:

```
{
  "scripts": {
    "post-install-cmd": [
      "zero-to-prod-validate-email"
    ],
    "post-update-cmd": [
      "zero-to-prod-validate-email"
    ]
  }
}
```

Usage
-----

[](#usage)

Returns true if the value is a valid email.

```
Zerotoprod\ValidateEmail\ValidateEmail::isEmail('john@example.com')
```

Contributing
------------

[](#contributing)

Contributions, issues, and feature requests are welcome! Feel free to check the [issues](https://github.com/zero-to-prod/validate-email/issues) page if you want to contribute.

1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit changes (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Create a new Pull Request.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance59

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

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

Every ~72 days

Total

5

Last Release

262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/502649f05d36c87d494988bd99193a4d908d345335d99c080928a726277371f5?d=identicon)[zero-to-prod](/maintainers/zero-to-prod)

---

Top Contributors

[![zero-to-prod](https://avatars.githubusercontent.com/u/61474950?v=4)](https://github.com/zero-to-prod "zero-to-prod (15 commits)")

---

Tags

emailemail-validationphpvalidationvalidate-emailzero-to-prodvalidate url

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zero-to-prod-validate-email/health.svg)

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

###  Alternatives

[daveearley/daves-email-validation-tool

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

284318.9k2](/packages/daveearley-daves-email-validation-tool)[voku/email-check

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

504.1M4](/packages/voku-email-check)[zero-to-prod/data-model

Transforms Data into Type-Safe DTOs.

14226.2k32](/packages/zero-to-prod-data-model)

PHPackages © 2026

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