punches/email-checker

There is no license information available for the latest version (v1.0.1) of this package.

Check emails for validity

v1.0.1 2019-04-16 18:31 UTC

This package is not auto-updated.

Last update: 2025-06-05 19:15:46 UTC


README

Checker uses preg_match() and getmxrr()

Installation

$ git clone https://github.com/Punches/email-checker

or

$ composer require punches/email-checker

Test PHP CLI

$ cd test
$ less test-list.txt | php check_stdin.php

Usage

<?
    use Otus\EmailChecker;

    $example = new EmailChecker;
    $line = "mail@mail.com";
    
    echo sprintf('%s is %s%s', $line, ($example->checkEmail($line) ? " valid" : " not valid"), PHP_EOL);