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

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

kozz/email-address-parser
=========================

Simply parses and autocompletes email addresses

1.0.0(11y ago)1219.9k↓50%1MITPHPPHP &gt;=5.4.0

Since Aug 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/urakozz/php-email-address-parser)[ Packagist](https://packagist.org/packages/kozz/email-address-parser)[ Docs](http://github.com/urakozz/php-email-address-parser)[ RSS](/packages/kozz-email-address-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

PHP Email Address Parser
========================

[](#php-email-address-parser)

[![Build Status](https://camo.githubusercontent.com/7dbb51a20fafdf6b87c7d3dfa7da3a89ba358976bcade8695e6f2e11d41d3ee7/68747470733a2f2f7472617669732d63692e6f72672f7572616b6f7a7a2f7068702d656d61696c2d616464726573732d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/urakozz/php-email-address-parser)[![Coverage Status](https://camo.githubusercontent.com/c712403239a80d8544dffd21afc1413d0e3cfb196e528aa0d22762959df1c83b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f7572616b6f7a7a2f7068702d656d61696c2d616464726573732d7061727365722e737667)](https://coveralls.io/r/urakozz/php-email-address-parser?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/212287faab00c3d20e2be722bbe3e2f0d04f250cc9b69613c1b1a6d6165119fd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7572616b6f7a7a2f7068702d656d61696c2d616464726573732d7061727365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/urakozz/php-email-address-parser/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/2dc9797b751d3d26503da60d31640a0a01f777fd99f1f8db4d81a555499a6398/68747470733a2f2f706f7365722e707567782e6f72672f6b6f7a7a2f656d61696c2d616464726573732d7061727365722f762f737461626c652e737667)](https://packagist.org/packages/kozz/email-address-parser)[![Latest Unstable Version](https://camo.githubusercontent.com/74d4cabde4e4a11953dcaa1de68267edbd4ef8ff344e4540d52bbf027444b503/68747470733a2f2f706f7365722e707567782e6f72672f6b6f7a7a2f656d61696c2d616464726573732d7061727365722f762f756e737461626c652e737667)](https://packagist.org/packages/kozz/email-address-parser)[![License](https://camo.githubusercontent.com/df58b1254366d56981a168c91e0829bcf19a9412e9234302bb92020b5f788064/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f7a7a2f656d61696c2d616464726573732d7061727365722e737667)](https://packagist.org/packages/kozz/email-address-parser)

Library that allows you simply parse your email addresses from string or array and autocomplete domain name if needed.

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

[](#installation)

Add the package to your `composer.json` and run `composer update`.

```
{
    "require": {
        "kozz/email-address-parser": "*"
    }
}

```

Examples
--------

[](#examples)

#### Parse String

[](#parse-string)

```
    use Kozz\Components\Email\AddressParser;

    $emails = 'example0@gmail.com , example1@gmail.com example2@gmail.com';
    $array = AddressParser::parse($emails)->toArray();
    //$array = ['example0@gmail.com','example1@gmail.com', 'example2@gmail.com']
```

#### Autocomplete domain

[](#autocomplete-domain)

```
    use Kozz\Components\Email\AddressParser;

    $emails = 'john@, aaron@, no-reply@gmail.com';
    $array = AddressParser::parse($emails, 'company.com')->toArray();
    //$array = ['john@company.com', 'aaron@company.com', 'no-reply@gmail.com']
```

#### Built-in email validation

[](#built-in-email-validation)

```
    use Kozz\Components\Email\AddressParser;

    $emails = 'john@, no-reply@gmail.com, ... skjs  sljfasfn afs, jhsldf.sdfjk"""85;@#$ ';
    $array = AddressParser::parse($emails, 'company.com')->toArray();
    //$array = ['john@company.com', 'no-reply@gmail.com']
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

4303d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f78e5a1e5128b31ba7dfedcc9a3ccfbc4852f5df1b79a54867aa377169968a1?d=identicon)[urakozz](/maintainers/urakozz)

---

Top Contributors

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

---

Tags

addressparseremail

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[zbateson/mail-mime-parser

MIME email message parser

54149.2M79](/packages/zbateson-mail-mime-parser)[salaros/is-biz-mail

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not

32452.6k](/packages/salaros-is-biz-mail)[movemoveapp/laravel-dadata

Laravel SDK for working with the DaData.RU service API

45209.8k](/packages/movemoveapp-laravel-dadata)[vaibhavpandeyvpz/phemail

A pure PHP MIME parser for parsing raw email files (.eml) with full support for multipart messages, nested structures, and RFC 2046 compliance.

33121.7k1](/packages/vaibhavpandeyvpz-phemail)

PHPackages © 2026

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