PHPackages                             yarri/email-address-recognizer - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. yarri/email-address-recognizer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

yarri/email-address-recognizer
==============================

Parses email addresses from the To: or Cc: header in a message.

v0.1.3(3y ago)1508↓100%1MITPHPPHP &gt;=5.6.0

Since Apr 16Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/yarri/EmailAddressRecognizer)[ Packagist](https://packagist.org/packages/yarri/email-address-recognizer)[ Docs](https://github.com/yarri/EmailAddressRecognizer)[ RSS](/packages/yarri-email-address-recognizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (1)

EmailAddressRecognizer
======================

[](#emailaddressrecognizer)

Parses email addresses from the To: or Cc: header in a message.

Usage
-----

[](#usage)

```
$ear = new Yarri\EmailAddressRecognizer("john@doe.com, Samatha Doe ");

$addresses = $ear->toArray();

sizeof($addresses); // how many addresses are there?

$ear->isValid(); // are all the addresses valid or not?

$addresses[0]->isValid(); // true
echo $addresses[0]->getAddress(); // "john@doe.com"
echo $addresses[0]->getName(); // ""
echo $addresses[0]->getFullAddress(); // "john@doe.com"
echo $addresses[0]->getDomain(); // "doe.com"
echo $addresses[0]->getGroup(); // ""

$addresses[1]->isValid(); // true
echo $addresses[1]->getAddress(); // "samatha@doe.com"
echo $addresses[1]->getName(); // "Samatha Doe"
echo $addresses[1]->getFullAddress(); // "Samatha Doe "
echo $addresses[1]->getDomain(); // "doe.com"
echo $addresses[1]->getGroup(); // ""

```

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

[](#installation)

Just use the Composer:

```
composer require yarri/email-address-recognizer

```

Testing
-------

[](#testing)

Install required dependencies for development:

```
composer update --dev

```

Run tests:

```
cd test
../vendor/bin/run_unit_tests

```

License
-------

[](#license)

EmailAddressRecognizer is free software distributed [under the terms of the MIT license](http://www.opensource.org/licenses/mit-license)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance41

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

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

Total

4

Last Release

1222d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6304dffbd91d7a978f98632b0e4e30d662dcdb691daadb1388a58984e98faf5c?d=identicon)[yarri](/maintainers/yarri)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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