PHPackages                             wmde/email-address - 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. wmde/email-address

ActiveLibrary

wmde/email-address
==================

Email Address value object written in PHP 7

v1.1.0(1y ago)480.6k↓12.3%1GPL-2.0-or-laterPHPPHP &gt;=8.4CI passing

Since Nov 2Pushed 1mo ago5 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (5)Used By (1)

Email Address
=============

[](#email-address)

[![Build Status](https://camo.githubusercontent.com/d4f657f2a8fe2b66a40cacfca56e8eb3f9d92186307b1c8c8060cd6e1c5fcbb2/68747470733a2f2f7472617669732d63692e6f72672f776d64652f656d61696c2d616464726573732e7376673f6272616e63683d6d61696e)](https://travis-ci.org/wmde/email-address)[![Latest Stable Version](https://camo.githubusercontent.com/8aaf36a2d4e72ee6bf4e68265f8ca37c5c309bafaf53a077932e800d41627930/68747470733a2f2f706f7365722e707567782e6f72672f776d64652f656d61696c2d616464726573732f76657273696f6e2e706e67)](https://packagist.org/packages/wmde/email-address)[![Download count](https://camo.githubusercontent.com/9a7bba5b18a40d60434b77326d049a09ab6f46e478d7ad18ae1a16ca566a915d/68747470733a2f2f706f7365722e707567782e6f72672f776d64652f656d61696c2d616464726573732f642f746f74616c2e706e67)](https://packagist.org/packages/wmde/email-address)

Email Address value object that can

- split username and domain
- normalize Internationalized Domain names (IDN).

```
class EmailAddress {
	public function __construct( string $emailAddress ) {
		// Validation
	}
	public function getUserName(): string {}
	public function getDomain(): string {}
	public function getNormalizedDomain(): string {}
	public function getFullAddress(): string {}
	public function getNormalizedAddress(): string {}
	public function __toString(): string {}
}
```

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

[](#installation)

To use the Email Address library in your project, simply add a dependency on wmde/email-address to your project's `composer.json` file. Here is a minimal example of a `composer.json`file that just defines a dependency on Email Address 2.x:

```
{
    "require": {
        "wmde/email-address": "~2.0"
    }
}
```

Development
-----------

[](#development)

### Installing dependencies

[](#installing-dependencies)

To pull in the project dependencies via Composer, run:

```
make install

```

To update them, run

```
make update

```

### Running the CI checks

[](#running-the-ci-checks)

To run all CI checks, which includes PHPUnit tests, PHPCS style checks and static analysis with PHPStan, run:

```
make

```

### Running the tests

[](#running-the-tests)

To run the PHPUnit tests run

```
make test

```

To run a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run

```
docker compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter

```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance72

Regular maintenance activity

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 52.9% 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 ~909 days

Total

4

Last Release

392d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.0

1.0.2PHP &gt;=8.1

v1.1.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

![](https://www.gravatar.com/avatar/054adb441e7ee248ec924bc45fa793835c284710eb31627587fa5de21bab9e96?d=identicon)[wmde](/maintainers/wmde)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (63 commits)")[![gbirke](https://avatars.githubusercontent.com/u/223326?v=4)](https://github.com/gbirke "gbirke (18 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (13 commits)")[![moiikana](https://avatars.githubusercontent.com/u/11670701?v=4)](https://github.com/moiikana "moiikana (11 commits)")[![Sperling-0](https://avatars.githubusercontent.com/u/30310702?v=4)](https://github.com/Sperling-0 "Sperling-0 (8 commits)")[![wiese](https://avatars.githubusercontent.com/u/167557?v=4)](https://github.com/wiese "wiese (4 commits)")[![Abban](https://avatars.githubusercontent.com/u/663782?v=4)](https://github.com/Abban "Abban (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wmde-email-address/health.svg)

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

PHPackages © 2026

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