PHPackages                             rizwan\_47/email-address-verifier - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. rizwan\_47/email-address-verifier

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

rizwan\_47/email-address-verifier
=================================

A PHP library for verifying email addresses, ensuring they are valid and reachable. This package provides a straightforward class for email validation processes.

1.1(1y ago)011MITPHPPHP ^7.4 || ^8.0

Since Apr 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/shahzad11/Email-Address-Verifier)[ Packagist](https://packagist.org/packages/rizwan_47/email-address-verifier)[ RSS](/packages/rizwan-47-email-address-verifier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Email Verifier PHP Library
==========================

[](#email-verifier-php-library)

Introduction
------------

[](#introduction)

The EmailVerifier library is designed to facilitate comprehensive email validation checks including syntax, domain verification, SMTP connection testing, SPF and DKIM record validation. This robust tool helps in ensuring that an email address is not only formatted correctly but also valid and active, making it an invaluable resource for developers working on email-related functionalities in PHP.

About the Author
----------------

[](#about-the-author)

**Shahzad Ahmad Mirza** is a veteran software developer with extensive experience in PHP development. With a career spanning over two decades, Shahzad has contributed to numerous projects and developed several high-quality software solutions. For more information about Shahzad's work, visit [his personal website](https://shahzadmirza.com) or his company [agency website designsvalley.com](https://designsvalley.com).

Features
--------

[](#features)

- **Syntax Validation**: Checks if the email address conforms to the standard email formatting rules.
- **Domain Verification**: Verifies if the domain of the email address has MX records indicating a capable mail server.
- **SMTP Checks**: Attempts to establish an SMTP connection to validate the existence and responsiveness of the email address.
- **SPF Check**: Verifies the presence of SPF records, which are essential for preventing email spoofing.
- **DKIM Check**: Checks for DKIM records to ensure the email has not been tampered with and is authorized by the domain owner.

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

[](#installation)

To use EmailVerifier in your project, install the package via composer:

```
composer require rizwan_47/email-address-verifier
```

Usage
-----

[](#usage)

Here is a simple example demonstrating how to use the EmailVerifier library to verify an email address:

```
