fgribreau / mailchecker
临时(一次性/丢弃)电子邮件检测库。涵盖1987个虚假电子邮件提供商。
v6.0.9
2024-09-11 10:00 UTC
Requires
- php: >=7.3
Requires (Dev)
- phpunit/phpunit: ^10
- dev-master
- v6.0.9
- v6.0.8
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v5.0.9
- v5.0.8
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.1.19
- v4.1.18
- v4.1.17
- v4.1.16
- v4.1.15
- v4.1.14
- v4.1.13
- v4.1.12
- v4.1.11
- v4.1.10
- v4.1.9
- v4.1.8
- v4.1.7
- v4.1.6
- v4.1.5
- v4.1.4
- v4.1.3
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.16
- v4.0.15
- v4.0.14
- v4.0.13
- v4.0.12
- v4.0.11
- v4.0.10
- v4.0.9
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.3.17
- v3.3.16
- v3.3.15
- v3.3.14
- v3.3.13
- v3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.39
- v3.2.38
- v3.2.37
- v3.2.36
- v3.2.35
- v3.2.34
- v3.2.33
- v3.2.32
- v3.2.31
- v3.2.30
- v3.2.29
- v3.2.28
- v3.2.27
- v3.2.26
- v3.2.25
- v3.2.24
- v3.2.23
- v3.2.22
- v3.2.21
- v3.2.20
- v3.2.19
- v3.2.18
- v3.2.17
- v3.2.16
- v3.2.15
- v3.2.14
- v3.2.13
- v3.2.12
- v3.2.11
- v3.2.10
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.40
- v3.0.39
- v3.0.38
- v3.0.37
- v3.0.36
- v3.0.35
- v3.0.34
- v3.0.33
- v3.0.32
- v3.0.31
- v3.0.30
- v3.0.29
- v3.0.28
- v3.0.27
- v3.0.26
- v3.0.25
- v3.0.24
- v3.0.23
- v3.0.22
- v3.0.21
- v3.0.20
- v3.0.19
- v3.0.18
- v3.0.17
- v3.0.16
- v3.0.15
- v3.0.14
- v3.0.13
- v3.0.12
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.1
- v2.0.0
- v1.6.3
- v1.6.2
- dev-fix-circle-ci
- dev-revert-162-master
- dev-greenkeeper/mocha-5.0.1
- dev-greenkeeper/mocha-5.0.0
This package is auto-updated.
Last update: 2024-09-17 09:21:50 UTC
README
跨语言电子邮件验证。由一个包含超过55,000个可丢弃电子邮件域的数据库支持。
- 验证电子邮件格式(使用validator.js电子邮件正则表达式和
FILTER_VALIDATE_EMAIL
用于PHP) - 验证电子邮件是否不是临时邮件(yopmail-like...,添加自己的数据集到list.txt)
当您需要联系用户并希望避免导致沟通不畅或想要阻止“垃圾邮件邮箱”的错误时,这将非常有帮助。
需要在您的SaaS中提供Webhooks吗?
需要将图表嵌入到电子邮件中吗?
使用 Image-Charts 就可以了,不再有服务器端渲染的痛苦,1个URL = 1个图表。
https://image-charts.com/chart?
cht=lc // chart type
&chd=s:cEAELFJHHHKUju9uuXUc // chart data
&chxt=x,y // axis
&chxl=0:|0|1|2|3|4|5| // axis labels
&chs=873x200 // size
升级
从3.x到4.x
- PHP
# import using the fully qualified name. use Fgribreau\MailChecker; // ... echo MailChecker::isValid('[email protected]');
从1.x到3.x
Mailchecker公共API已被标准化,以下是更改
- NodeJS/JavaScript:
MailChecker(email)
->MailChecker.isValid(email)
- PHP:
MailChecker($email)
->MailChecker::isValid($email)
- Python
import MailChecker m = MailChecker.MailChecker() if not m.is_valid('[email protected]'): # ...
变为
import MailChecker if not MailChecker.is_valid('[email protected]'): # ...
MailChecker目前支持
- NodeJS (CommonJS, 说明)
- JavaScript (客户端,说明)
- PHP (说明)
- Python (说明)
- Ruby (说明)
- Rust (说明)
- Elixir (说明)
- Clojure (说明)
- Go (说明)
- 使用MailChecker模板系统和发送给我们一个pull-request!轻松添加您自己的语言支持
使用方法
NodeJS
var MailChecker = require('mailchecker'); if(!MailChecker.isValid('[email protected]')){ console.error('O RLY !'); process.exit(1); } if(!MailChecker.isValid('myemail.com')){ console.error('O RLY !'); process.exit(1); }
JavaScript
<script type="text/javascript" src="MailChecker/platform/javascript/MailChecker.js"></script> <script type="text/javascript"> if(!MailChecker.isValid('[email protected]')){ console.error('O RLY !'); } if(!MailChecker.isValid('myemail.com')){ console.error('O RLY !'); } </script>
PHP
use Fgribreau\MailChecker; require __DIR__ . '/vendor/autoload.php'; if(!MailChecker::isValid('[email protected]')){ die('O RLY !'); } if(!MailChecker::isValid('myemail.com')){ die('O RLY !'); }
Python
pip install mailchecker
# no package yet; just drop in MailChecker.py where you want to use it. from MailChecker import MailChecker if not MailChecker.is_valid('[email protected]'): print "O RLY !"
Django 验证器:https://github.com/jonashaag/django-indisposable
Ruby
require 'mail_checker' unless MailChecker.valid?('[email protected]') fail('O RLY!') end
Rust
extern crate mailchecker; assert_eq!(true, mailchecker::is_valid("[email protected]")); assert_eq!(false, mailchecker::is_valid("\n[email protected]\n")); assert_eq!(false, mailchecker::is_valid("[email protected]"));
Elixir
Code.require_file("mail_checker.ex", "mailchecker/platform/elixir/") unless MailChecker.valid?("[email protected]") do raise "O RLY !" end unless MailChecker.valid?("myemail.com") do raise "O RLY !" end
Clojure
; no package yet; just drop in mailchecker.clj where you want to use it. (load-file "platform/clojure/mailchecker.clj") (if (not (mailchecker/valid? "[email protected]")) (throw (Throwable. "O RLY!"))) (if (not (mailchecker/valid? "myemail.com")) (throw (Throwable. "O RLY!")))
Go
package main import ( "log" "github.com/FGRibreau/mailchecker/platform/go" ) if !mail_checker.IsValid('myemail@yopmail.com') { log.Fatal('O RLY !'); } if !mail_checker.IsValid('myemail.com') { log.Fatal("O RLY !") }
安装
Go
go get https://github.com/FGRibreau/mailchecker
NodeJS/JavaScript
npm install mailchecker
Ruby
gem install ruby-mailchecker
PHP
composer require fgribreau/mailchecker
我们接受其他包管理器的pull-requests.
数据源
$('td', 'table:last').map(function(){ return this.innerText; }).toArray();
Array.prototype.slice.call(document.querySelectorAll('.entry > ul > li a')).map(function(el){return el.innerText});
... 请将您的数据集添加到list.txt中.
从list.txt重新生成库
只需运行(需要NodeJS)
npm run build
开发
开发环境需要docker。
# install and setup every language dependencies in parallel through docker npm install # run every language setup in parallel through docker npm run setup # run every language tests in parallel through docker npm test
支持者
维护者
这些了不起的人正在维护此项目
赞助商
还没有赞助商!你将是第一个吗?
贡献者
这些了不起的人为这个项目贡献了代码
- Owen Stephens
- Jacob Burenstam Linder
- Herman Slatman
- trisix — 查看贡献
- Greenkeeper
- Dustin Clark
- Anton Zhiyanov
- Bruel Nicolas — 查看贡献
- Robin — 查看贡献
- Spir — 查看贡献
- Vincent Giersch
- Adrian Carolli
- Dave Powers
- Frank Phillips — 查看贡献
- LuckyDino — 查看贡献
- ven — 查看贡献
- Romain Gay
- Sebastian Cohnen
- Dalai — 查看贡献
- quaswex — 查看贡献
- sxyuan — 查看贡献
- Francois-Guillaume Ribreau
- Dusty
- larsvegas
- Zeeshan Muhammad
- kkleejoe — 查看贡献
- Luiz Freneda
- thorinisme — 查看贡献
- Liudas Šumskas — 查看贡献
- Alexander — 查看贡献
- Alex Domaki
- Carlos Rios
- Jacek Bzdak — 查看贡献
- D — 查看贡献
- Jonas Haag
- Alex Domakidis
- Dan McGregor — 查看贡献
- Thiago Rodrigues
- Dilli Labs LLC
- Kieron Lawson
- Kslr
- Lint
- chadliu23 — 查看贡献
- milkyklim
- Sharat M R — 查看贡献
- Nicolas Perraud — 查看贡献
- tbdmainrepo — 查看贡献
- Kslr — 查看贡献
- Fabio Caccamo
- cyril souillard — 查看贡献
- Grégoire Pineau
- Bruno Bossola
- florian-crtl — 查看贡献
- mikeyzm
- Grégoire Pineau
- alonga — 查看贡献
- Vitalii Tverdokhlib
- Francis Chuang — 查看贡献
- mikeyzm — 查看贡献
- Pascal Vizeli
- Caroline — 查看贡献
- Daniel Mihai
- HWVS — 查看贡献
- seb's — 查看贡献
- Chigusa0w0
- Maki
变更日志
许可证
除非另有说明,所有作品均为
- 版权所有 © Francois-Guillaume Ribreau
并授权于