leo108/email-fake-filter
最新稳定版本:v1.141.0
Composer 安装命令:
composer require leo108/email-fake-filter
包简介
Email Fake Filter is a PHP library that allows you to check if an email address is a disposable/one-time email address.
README 文档
README
EmailFakeFilter is a PHP library that allows you to check if an email address is a disposable/one-time email address. This library is useful for preventing spam and fraudulent activity on your website or application.
Requirements
- PHP 8.0 or later
- Composer
Installation
You can install EmailFakeFilter using Composer. Just run the following command:
composer require leo108/email-fake-filter
This project gets its fake email addresses from 7c/fakefilter. The database is updated weekly, it's recommended to always use the latest version of this library:
composer update leo108/email-fake-filter
Usage
You can call the static methods of the EmailFakeFilter class:
use EmailFakeFilter\EmailFakeFilter; if (EmailFakeFilter::isFakeDomain('mailinator.com')) { // This is a disposable/one-time domain } else { // This is not a disposable/one-time domain } // Check if an email address is a disposable/one-time email address if (EmailFakeFilter::isFakeEmail('example@mailinator.com')) { // This is a disposable/one-time email address } else { // This is not a disposable/one-time email address } // Get information about a domain $info = EmailFakeFilter::getDomainInfo('mailinator.com'); if ($info !== null) { // This is a disposable/one-time domain, and $info contains additional information about it } else { // This is not a disposable/one-time domain }
License
EmailFakeFilter is open source software licensed under the MIT License. See the LICENSE file for more information.
统计信息
- 总下载量: 1.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-04