PHPackages                             mitmelon/email\_horse - 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. mitmelon/email\_horse

Abandoned → [egulias/email-validator](/?search=egulias%2Femail-validator)Library[Validation &amp; Sanitization](/categories/validation)

mitmelon/email\_horse
=====================

Class to validate and verify email address

1.0.0(6y ago)2111MITPHP

Since Jan 18Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/mitmelon/Email_Horse)[ Packagist](https://packagist.org/packages/mitmelon/email_horse)[ RSS](/packages/mitmelon-email-horse/feed)WikiDiscussions master Synced 6d ago

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

THIS PROJECT HAS BEEN ABANDONED PLEASE USE egulias/email-validator at  INSTEAD. THANKS.
==================================================================================================================================

[](#this-project-has-been-abandoned-please-use-eguliasemail-validator-at-httpsgithubcomeguliasemailvalidator-instead-thanks)

[![FOSSA Status](https://camo.githubusercontent.com/47feaae101543bb6191daa09884a43f8f0e8dc65df66fc0921231d44009b4a8c/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466d69746d656c6f6e253246456d61696c5f486f7273652e7376673f747970653d736869656c64)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmitmelon%2FEmail_Horse?ref=badge_shield)

Email\_Horse v1.0.0
===================

[](#email_horse-v100)

Email Horse is an email validation class to verify the presence of email. The Email\_Horse class is used to check if an email address is valid and real using SMTP protocol in PHP. You need to use one function of Email\_Horse class to verify the email address in PHP.

Email\_Horse Does the followings

1. Validate the format of the email address.
2. Get MX records of the domain of the email address.
3. Connect to the SMTP server by the MX records.
4. Check if given recipient email address is valid.
5. Check if the user of email's domain exists.

Install:
--------

[](#install)

Use composer to install

```
composer require mitmelon/email_horse
```

Class Usage :
-------------

[](#class-usage-)

```
require_once __DIR__."/vendor/autoload.php";

// Initialize library class
$mail = new Email_Horse();

// Set the timeout value on stream
$mail->setStreamTimeoutWait(20);

// Set debug output mode
$mail->Debug= TRUE;
$mail->Debugoutput= 'html';

// Set email address for SMTP request
$mail->setEmailFrom('from@email.com');

// Email to check/validate
$email = 'email@example.com';

// Check if email is valid and exist
if($mail->check($email)){
    echo 'Email &lt;'.$email.'&gt; is exist!';
}elseif($mail::validate($email)){
    echo 'Email &lt;'.$email.'&gt; is valid, but not exist!';
}else{
    echo 'Email &lt;'.$email.'&gt; is not valid and not exist!';
}
```

License
=======

[](#license)

Released under the MIT license

[![FOSSA Status](https://camo.githubusercontent.com/168e0eff03152a9df7a16e890b67fe75dcc8fa4f6d810d4eb906218918423bb5/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466d69746d656c6f6e253246456d61696c5f486f7273652e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmitmelon%2FEmail_Horse?ref=badge_large)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance54

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

2311d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f05a05a056e93b9cd6513702b8c1af6f6ae71a9c8e288230ec1c10c6ffa3719?d=identicon)[mitmelon](/maintainers/mitmelon)

---

Top Contributors

[![manomite](https://avatars.githubusercontent.com/u/19540103?v=4)](https://github.com/manomite "manomite (6 commits)")[![mitmelon](https://avatars.githubusercontent.com/u/55149512?v=4)](https://github.com/mitmelon "mitmelon (5 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

### Embed Badge

![Health badge](/badges/mitmelon-email-horse/health.svg)

```
[![Health](https://phpackages.com/badges/mitmelon-email-horse/health.svg)](https://phpackages.com/packages/mitmelon-email-horse)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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