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

ActiveLibrary

omegavesko/email-parser
=======================

A library that makes it easy to get various information about a given email address.

3.0(5y ago)5379[1 PRs](https://github.com/omegavesko/email-parser/pulls)MITPHPPHP &gt;=7.4

Since Jul 1Pushed 4y agoCompare

[ Source](https://github.com/omegavesko/email-parser)[ Packagist](https://packagist.org/packages/omegavesko/email-parser)[ RSS](/packages/omegavesko-email-parser/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (6)Versions (8)Used By (0)

email-parser
============

[](#email-parser)

[![CI](https://github.com/omegavesko/email-parser/actions/workflows/main.yml/badge.svg)](https://github.com/omegavesko/email-parser/actions/workflows/main.yml)[![Test Coverage](https://camo.githubusercontent.com/37c4cedce42e66f1e93bbf0eff23c5da432b3b340bb2179fe758134696315a8b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66343964383266306664613132653934353336612f746573745f636f766572616765)](https://codeclimate.com/github/omegavesko/email-parser/test_coverage)[![Maintainability](https://camo.githubusercontent.com/49a706b353e1934885a39ce3498da421a388bdef250024d6a3f8d90967d1b005/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66343964383266306664613132653934353336612f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/omegavesko/email-parser/maintainability)[![Packagist Version](https://camo.githubusercontent.com/49044b775539e15ea8fd1177702cd322344181c4241f92f4e3adce321a9f68ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d6567617665736b6f2f656d61696c2d7061727365722e737667)](https://packagist.org/packages/omegavesko/email-parser)[![GitHub](https://camo.githubusercontent.com/621859b1b504335cb3128ed08e14f1ac203f5b6fad7f93a4e62183aee0be68dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f6d6567617665736b6f2f656d61696c2d7061727365722e737667)](https://camo.githubusercontent.com/621859b1b504335cb3128ed08e14f1ac203f5b6fad7f93a4e62183aee0be68dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f6d6567617665736b6f2f656d61696c2d7061727365722e737667)

`email-parser` is a PHP library that makes it easy to get various information about an email address.

Features
--------

[](#features)

- ✔️ Configurable email validation (powered by [egulias/email-validator](https://github.com/egulias/EmailValidator))
- 🔍 Separate an email address into its segments
- 🌎 Get information about the email provider, based on the domain

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- PHP &gt;= 7.4
- [Composer](https://getcomposer.org/)

### Installing

[](#installing)

```
composer require omegavesko/email-parser
```

Usage
-----

[](#usage)

To use the parser, create an instance of the `EmailParser` class, and use the `parseEmail()` and `parseEmails()` methods to parse emails into `EmailInformation`instances.

```
