valentinbv/free-email-provider-check

免费电子邮件服务商检查

v0.0.2 2020-05-26 13:58 UTC

This package is not auto-updated.

Last update: 2024-09-26 08:46:53 UTC


README

这个小库旨在检查电子邮件是否属于免费电子邮件服务。这可能有助于验证电子邮件是否属于企业域。

感谢此列表

您可以使用提供的域名列表或添加其他域名

该库允许您与包含域名列表的文本文件和数组一起工作。您可以通过实现接口valentinbv\Interfaces\ISource来始终扩展可能性。

例如,使用文件

$fileSource = new valentinbv\Email\FileSource(__DIR__ . '/domains.txt');
$fileSource->find('yahoo.com');

或使用数组

$arraySource = new valentinbv\Email\ArraySource(['yahoo.com']);
$arraySource->find('yahoo.com');

从packagist安装

composer require valentinbv/free-email-provider-check

从git安装,请添加到composer.json中

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/ValentinBV/free-email-provider-check.git"
        }
    ],
    "require": {
        "valentinbv/free-email-provider-check": "dev-master"
    }
}