承接 lukaswhite/email-checker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lukaswhite/email-checker

最新稳定版本:1.0.0

Composer 安装命令:

composer create-project lukaswhite/email-checker

包简介

A PHP package that checks e-mail addresses to see if they're disposable, or from a provider of free addresses

README 文档

README

A library for checking an e-mail address to see if it's from a provider of free or disposable providers.

It's essentially a PHP wrapper around the data provided by the freemail project, with a straightforward way to keep the data up-to-date.

Usage

First, you need to grab the data:

$sync = new \Lukaswhite\EmailChecker\Data\Sync('./some/local/path');
$sync->fetch();

Then you're good to go:

$checker = new \Lukaswhite\EmailChecker\Checker();

$result = $checker->check('hello@mailinator.com');

$result->isDisposable(); // true
$result->isFree(); // false
$result->isBlacklisted(); // false

To update the data; for example, via a cron job:

$sync = new \Lukaswhite\EmailChecker\Data\Sync('./some/local/path');
$sync->update();

Under the Hood

The package works by fetching the freemail package using Git into a local folder, then looking up an email's domain from that data.

Running the update method simply pulls in any changes from the remote Git repository.

统计信息

  • 总下载量: 192
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-05