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 6mo 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 yesterday

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

34

—

LowBetter than 74% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

2403d 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

[toplan/laravel-sms

A mobile phone number validation solution based on laravel

83580.2k2](/packages/toplan-laravel-sms)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[udokmeci/yii2-phone-validator

Modern Yii2 Phone validator wrapper on top of PhoneNumberUtil library also used by Android devices

36227.5k1](/packages/udokmeci-yii2-phone-validator)[snowcap/vat-validation

EU VAT number validation

10112.3k](/packages/snowcap-vat-validation)

PHPackages © 2026

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