PHPackages                             aman00323/emailchecker - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. aman00323/emailchecker

ActiveLibrary[HTTP &amp; Networking](/categories/http)

aman00323/emailchecker
======================

Laravel package for checking email address is exist or not in real world

2.2.0(6y ago)15860.6k—2.1%32[3 PRs](https://github.com/aman00323/email-checker/pulls)MITPHPPHP &gt;=7.0.0

Since Aug 23Pushed 3y ago6 watchersCompare

[ Source](https://github.com/aman00323/email-checker)[ Packagist](https://packagist.org/packages/aman00323/emailchecker)[ Docs](https://github.com/aman00323/email-checker)[ RSS](/packages/aman00323-emailchecker/feed)WikiDiscussions master Synced 1mo ago

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

Email Checker
=============

[](#email-checker)

[![CircleCI](https://camo.githubusercontent.com/04c7662110ed9a3f8005e97c8aa5ca8e8bf86382d2c654461585fb8dcf8bcc33/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f616d616e30303332332f656d61696c2d636865636b6572)](https://camo.githubusercontent.com/04c7662110ed9a3f8005e97c8aa5ca8e8bf86382d2c654461585fb8dcf8bcc33/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f616d616e30303332332f656d61696c2d636865636b6572) [![MadeWithLaravel.com shield](https://camo.githubusercontent.com/8b2560b71457b5bded958610ae0f8581a1545d393c0a578d113de5ffa882f769/68747470733a2f2f6d616465776974686c61726176656c2e636f6d2f73746f726167652f7265706f2d736869656c64732f313638392d736869656c642e737667)](https://madewithlaravel.com/p/email-checker/shield-link) [![Maintenance](https://camo.githubusercontent.com/5ca62441414bacaa54c6c6e5b68e46c76305947b6bf498c4949fc71c1b4b10dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642533462d7965732d677265656e2e737667)](https://GitHub.com/aman00323/StrapDown.js/graphs/commit-activity) [![GitHub license](https://camo.githubusercontent.com/3c3307b365052c8c24fbdac1eabead780e220d419aec21f5392f3672336db442/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616d616e30303332332f656d61696c2d636865636b6572)](https://github.com/aman00323/email-checker/blob/master/LICENSE) [![GitHub release](https://camo.githubusercontent.com/f010b2157d0f3ce676c22f4a280920cd509fd751dc3bb1eab3bc57098fe9d9bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f616d616e30303332332f656d61696c2d636865636b6572)](https://github.com/aman00323/email-checker/releases)

Email Checker was created and maintained by [Aman Nurani](https://github.com/aman00323). It provides a powerful email validating system for both development and production for Laravel. It uses [fsockopen()](https://www.php.net/manual/en/function.fsockopen.php), [cURL](https://www.php.net/manual/en/book.curl.php) and many more to validate email address exists or not in real world.

Nowadays most of websites are using registration process where they need to verify user's ownership. Mostly developers verify email by sending email verification link to the email, So this will store extra email in database (if they were not exists in real). Additionally some people use [disposable emails](https://en.wikipedia.org/wiki/Disposable_email_address) for temporary usage.

🎉 WE HAVE MORE THAN 25K DIPOSABLE DOMAIN LIST 🎉
===============================================

[](#tada-we-have-more-than-25k-diposable-domain-list-tada)

 THIS PACKAGE WILL HELP YOU TO VERIFY EMAIL Installation
------------

[](#installation)

Email Checker requires [PHP](https://php.net) &gt; 7.0. This particular version supports with latest [Laravel](https://laravel.com/).

To get the latest version, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require aman00323/emailchecker
```

Once installed, You need to include `Aman\EmailVerifier\EmailChecker` to access methods for email verify.

Usage
-----

[](#usage)

### Check Disposable Emails

[](#check-disposable-emails)

If you want to check email is [disposable emails](https://en.wikipedia.org/wiki/Disposable_email_address) or not then you can use the following function of [emailchecker](https://github.com/aman00323/email-verifier/)

***Added new option to check disposable emails***

This option is part of checkDisposableEmail() method, you need to pass second argument as true.

When you pass true inside helper will check emails with list of dispossable. which are hosted on gist, So whenever list will be changed you would't have to update package.

```
app(EmailChecker::class)->checkDisposableEmail('something@example.com','boolean'));
```

This email verification will be done on the basis of [disposable emails](https://en.wikipedia.org/wiki/Disposable_email_address) list, This function will check if entered email address is in the list of disposable or not.

### Check DNS And MX Records

[](#check-dns-and-mx-records)

*For better output you need to set from email address for this method*

```
app(EmailChecker::class)->setFromEmail('something@example.com','boolean'));
```

OR Set ENV variable in your .env

```
EMAIL_CHECKER_SET_FROM='something@example.com'
```

Another usage is to check [DNS](https://en.wikipedia.org/wiki/Domain_Name_System) and [MX Record](https://en.wikipedia.org/wiki/MX_record) of the email address, In this method package will try to extract records from email address and try to verify using [SMTP](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol).

If this method will successfully extract records, then it will try to send HELLO message on the email address using [fsockopen()](https://www.php.net/manual/en/function.fsockopen.php), if it get valid status from MAIL server then it will return true. Also function will return true if it is not verify with the detail message.

```
app(EmailChecker::class)->checkMxAndDnsRecord('something@example.com'));
```

This will return array with success and details, Details will indicate email verified with any exception or not.

For better output your server needs to support [fsockopen()](https://www.php.net/manual/en/function.fsockopen.php).

### Check Domain Status

[](#check-domain-status)

Sometime it is hard to identify that email exist or not based on DNS and MX Records, So this method will check the domain status using [cURL](https://www.php.net/manual/en/book.curl.php).

This method ensures that email which is given has valid domain.

```
app(EmailChecker::class)->checkDomain('something@example.com'));
```

This method will return TRUE or FALSE, if it successfully get response then it will return TRUE. Response validates based on [HTTP Status Code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes).

### Check Email

[](#check-email)

This method will use all of the methods and it gives detail response, if it gives TRUE.

If any of the method will respond with FALSE then will not give detail report.

```
app(EmailChecker::class)->checkEmail('something@example.com','boolean'));
```

As we have added new option with checkDisposableEmail() which has second argument that will enable deep check to compare domain with large list.

Don't worry it would't take too much time. 😄

All are different method you can use individually as per your requirement. To call all of the method at once use **Check Email**

Future Developement
-------------------

[](#future-developement)

Please let add your ideas to improve this package.

Contribution
------------

[](#contribution)

All contributer are welcome, Code must follow [PSR2](https://www.php-fig.org/psr/psr-2/). create feature branch to compare with email checker. Your code must pass testcases.

**NOTE** : This package will not ensure to verify each and email address, some of them cannot be verify due to MAIL server securities.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.2% 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 ~49 days

Recently: every ~62 days

Total

6

Last Release

2212d ago

Major Versions

1.2.0 → 2.0.02019-09-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/272a52fd61c2e6381a5de405261d9df4223b614593c333cb298fa1a788902bf6?d=identicon)[aman00323](/maintainers/aman00323)

---

Top Contributors

[![aman00323](https://avatars.githubusercontent.com/u/48248836?v=4)](https://github.com/aman00323 "aman00323 (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![truestealth](https://avatars.githubusercontent.com/u/4082902?v=4)](https://github.com/truestealth "truestealth (1 commits)")

---

Tags

curldisposable-emailsdnsemailemail-checkemail-checkeremail-existsemail-validationemail-verificationemail-verifierextract-recordsfsockopenlaravel-email-verificationlaravel-frameworklaravel-packagemx-recordphpphp7verificationverifyemail validationemail-verificationdisposable email checkerphp email verifieremail exist or notdisposable emails

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aman00323-emailchecker/health.svg)

```
[![Health](https://phpackages.com/badges/aman00323-emailchecker/health.svg)](https://phpackages.com/packages/aman00323-emailchecker)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)[friendsofsymfony/http-cache-bundle

Set path based HTTP cache headers and send invalidation requests to your HTTP cache

43813.2M47](/packages/friendsofsymfony-http-cache-bundle)

PHPackages © 2026

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