PHPackages                             unicodeveloper/laravel-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. unicodeveloper/laravel-email-validator

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

unicodeveloper/laravel-email-validator
======================================

Provides a Facade to help validate and verify email addresses

1.0.1(10y ago)2332.5k2[2 issues](https://github.com/unicodeveloper/laravel-email-validator/issues)MITPHPPHP &gt;=5.5.9

Since Nov 1Pushed 10y ago2 watchersCompare

[ Source](https://github.com/unicodeveloper/laravel-email-validator)[ Packagist](https://packagist.org/packages/unicodeveloper/laravel-email-validator)[ Docs](https://github.com/busayo/laravel-email-validator)[ RSS](/packages/unicodeveloper-laravel-email-validator/feed)WikiDiscussions master Synced 1mo ago

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

laravel-email-validator
=======================

[](#laravel-email-validator)

[![Latest Stable Version](https://camo.githubusercontent.com/106e347dec5487f7159f8ba288376b9a2c40915ba25dd4ee43e6f6a633bfa859/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d656d61696c2d76616c696461746f722f762f737461626c652e737667)](https://packagist.org/packages/unicodeveloper/laravel-email-validator)[![](https://camo.githubusercontent.com/984f6792e3d81e34b782c12770dfd5e6153ea75f5e71d8e668933b988ba1a81f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e69636f646576656c6f7065722d617070726f7665642d627269676874677265656e2e737667)](https://camo.githubusercontent.com/984f6792e3d81e34b782c12770dfd5e6153ea75f5e71d8e668933b988ba1a81f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e69636f646576656c6f7065722d617070726f7665642d627269676874677265656e2e737667)[![License](https://camo.githubusercontent.com/d967ae973d7509470ae470da38bb79625848dd3652b1b80dda9acede7c9872ad/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d656d61696c2d76616c696461746f722f6c6963656e73652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/737e846af0e304cf9c7dde4151cd06dd817de8647fe81d522f4e748851bfae93/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f756e69636f646576656c6f7065722f6c61726176656c2d656d61696c2d76616c696461746f722e737667)](https://travis-ci.org/unicodeveloper/laravel-email-validator)[![Quality Score](https://camo.githubusercontent.com/285ed149483ffa91c0af858eb951eed173b5da1478a00b3af5d4b6a0fbce7782/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f756e69636f646576656c6f7065722f6c61726176656c2d656d61696c2d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-email-validator)[![Total Downloads](https://camo.githubusercontent.com/70bb84fdf4114170bde0d668cb8aefe50627ad94a69d78747cc7b2e2853f961c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e69636f646576656c6f7065722f6c61726176656c2d656d61696c2d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/unicodeveloper/laravel-email-validator)

> Laravel 5 Package to help validate and verify your email addresses.

**Note:** This depends on the paid service from .

Install
-------

[](#install)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

Via Composer

```
$ composer require unicodeveloper/laravel-email-validator
```

Another alternative is to simply add the following line to the require block of your `composer.json` file.

```
"unicodeveloper/laravel-email-validator": "1.0.*"

```

Then run `composer install` or `composer update` to download it and have the autoloader updated.

Add this to your providers array in `config/app.php`

```
// Laravel 5: config/app.php

'providers' => [
    ...
    Unicodeveloper\EmailValidator\EmailValidatorServiceProvider::class,
    ...
];
```

This package also comes with a facade

```
// Laravel 5: config/app.php

'aliases' => [
    ...
    'EmailValidator' => Unicodeveloper\EmailValidator\EmailValidatorFacade::class,
    ...
]
```

Publish the config file by running:

```
php artisan vendor:publish
```

The config file will now be located at `config/emailValidator.php`.

Configuration
-------------

[](#configuration)

This is the `emailValidator.php` file in the `config` directory. Go to [quickemailverification.com](http://quickemailverification.com/), sign up, get an api Key and insert here

```
/**
 *  Config file that a user/developer can insert quickemailverficationservice api key
 */
return [
    'apiKey' => ''
];
```

Usage
-----

[](#usage)

With the Facades, all you need to do in your application is something like so:

```
 print_r(EmailValidator::verify('kkkkk@example.com')->isValid());
 // returns Array ( [0] => [1] => Could not get MX records for domain )

 print_r(EmailValidator::verify('prosperotemuyiwa@gmail.com')->isValid());
 // returns Array ( [0] => 1 [1] => SMTP server accepted email address )

 var_dump( EmailValidator::verify('prosperotemuyiwa@gmail.com')->isValid()[0]);
 // returns bool(true)

 var_dump( EmailValidator::verify('kkkkk@example.com')->isValid()[0]);
 // returns bool(false)

 if( EmailValidator::verify('kkkkk@example.com')->isValid()[0] ){
   ......
 }

 // returns a true/false if the email address is valid or not
```

### Other Methods Available

[](#other-methods-available)

```
/**
 * Returns true or false if the email address uses a disposable domain
 * @return boolean
 */
EmailValidator::verify('kkkkk@example.com')->isDisposable()
```

```
/**
 * Returns true or false if the API request was successful
 * @return boolean
 */
EmailValidator::verify('kkkkk@example.com')->apiRequestStatus()
```

```
/**
 * Get the domain of the provided email address
 * @return string
 */
EmailValidator::verify('kkkkk@example.com')->getDomainName()
```

```
/**
 * Get the local part of an email address
 * Example: kkkkk@example.com returns kkkkk
 * @return string
 */
EmailValidator::verify('kkkkk@example.com')->getUser()
```

```
/**
 * Gets a normalized version of the email address
 * Example: KkkKk@example.com returns kkkkk@gmail.com
 * @return string
 */
EmailValidator::verify('kkkkk@example.com')->getEmailAddress()
```

```
/**
 * Returns true if the domain appears to accept all emails delivered to that domain
 * @return boolean
 */
EmailValidator::verify('kkkkk@example.com')->acceptEmailsDeliveredToDomain()
```

```
/**
 * Returns true or false if email address is a role address
 * Example manager@example.com , ceo@example.com will return true
 * @return boolean
 */
EmailValidator::verify('kkkkk@example.com')->isRole()
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Todo: Testing
-------------

[](#todo-testing)

Todo: Verify a list of emails
-----------------------------

[](#todo-verify-a-list-of-emails)

You can run the tests with:

```
vendor/bin/phpunit run
```

Alternatively, you can run the tests like so:

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

How can I thank you?
--------------------

[](#how-can-i-thank-you)

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Don't forget to [follow me on twitter](https://twitter.com/unicodeveloper)!

Thanks! Prosper Otemuyiwa.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

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

3849d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae318eb1f5f21579ddee07834130c1169ae6a0771044c3de671dfb02cd79c59f?d=identicon)[unicodeveloper](/maintainers/unicodeveloper)

---

Top Contributors

[![unicodeveloper](https://avatars.githubusercontent.com/u/2946769?v=4)](https://github.com/unicodeveloper "unicodeveloper (18 commits)")

---

Tags

laravelverifyvalidateYearemail validatorEmail Verifierbusayolaravel-email-validator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/unicodeveloper-laravel-email-validator/health.svg)

```
[![Health](https://phpackages.com/badges/unicodeveloper-laravel-email-validator/health.svg)](https://phpackages.com/packages/unicodeveloper-laravel-email-validator)
```

###  Alternatives

[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)[larapack/command-validation

Enable a method for Artisan Commands to validate the output of methods like `ask`.

133.8k](/packages/larapack-command-validation)[janvince/smallcontactform

Simple but flexible multi language contact form builder with custom fields, validation and passive antispam

307.4k](/packages/janvince-smallcontactform)[busayo/laravel-yearly

Provides helper function to get the current year and a range of years

114.1k](/packages/busayo-laravel-yearly)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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