pcf / disposable-email
简单库,用于验证邮件是否来自一次性或临时电子邮件地址域。
v1.1.0
2018-06-13 22:47 UTC
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^6.0
- squizlabs/php_codesniffer: ^2.8
This package is not auto-updated.
Last update: 2024-09-28 21:07:43 UTC
README
我们的域仓库来自 仓库,该仓库由 公共领域许可(CC0 1.0) 许可。
域仓库日期: 09.11.2017
此仓库由 MIT 许可 贡献,但文件 blocklist.conf 和 trustlist.conf 由 公共领域许可(CC0 1.0) 贡献。
基本用法
<?php require 'vendor/autoload.php'; use PCF\DisposableEmail\ListedVerifier; use PCF\DisposableEmail\SimpleDomainCollection; use PCF\DisposableEmail\Resource\AbstractResourceList; $collection = new SimpleDomainCollection(); $collection->setBlockedList(AbstractResourceList::getList('block')); $collection->setTrustedList(AbstractResourceList::getList('trust')); $collection->setKnownList([ //Add domains that you know, if you want ]); $verifier = new ListedVerifier($collection); $mail = 'paw.radzikowski@gmail.com'; $domain = trim(strstr($mail, '@'), '@'); $status = $verifier->verifyDomain($domain); //It should return ListedVerifier::DOMAIN_UNKNOWN
版本
此 composer 库的版本号类似于 1.0.201707401
,包含主版本号、次要版本号、年份、年份中的天数和提交版本号。这应该有助于邮件仓库的版本管理。