PHPackages                             jeronimofagundes/email-validator - 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. jeronimofagundes/email-validator

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

jeronimofagundes/email-validator
================================

A library for validating emails against several RFCs

2.1.7(7y ago)11451[2 PRs](https://github.com/jeronimofs/EmailValidator/pulls)MITPHPPHP &gt;= 5.5

Since May 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jeronimofs/EmailValidator)[ Packagist](https://packagist.org/packages/jeronimofagundes/email-validator)[ Docs](https://github.com/egulias/EmailValidator)[ RSS](/packages/jeronimofagundes-email-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (42)Used By (0)

EmailValidator
==============

[](#emailvalidator)

Suported RFCs
-------------

[](#suported-rfcs)

This library aims to support:

RFC 5321, 5322, 6530, 6531, 6532.

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

[](#requirements)

- [Composer](https://getcomposer.org) is required for installation
- [Spoofchecking](/src/Validation/SpoofCheckValidation.php) and [DNSCheckValidation](/src/Validation/DNSCheckValidation.php) validation requires that your PHP system has the [PHP Internationalization Libraries](https://php.net/manual/en/book.intl.php) (also known as PHP Intl)

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

[](#installation)

Run the command below to install via Composer

```
composer require jeronimofagundes/email-validator "dev-master"
```

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

[](#getting-started)

`EmailValidator`requires you to decide which (or combination of them) validation/s strategy/ies you'd like to follow for each [validation](#available-validations).

A basic example with the RFC validation

```
