funnydevjsc/laravel-email-filter
Composer 安装命令:
composer require funnydevjsc/laravel-email-filter
包简介
Laravel package to filter bad email
README 文档
README
The free Laravel package to help you filter your users email with multiple services
Use Cases
- Perform a powerful checking for user email before approving registration or invoice making.
- Parse result from validator
- Example use case
Features
- Check blacklist from poste.io, site24x7.com
- Check quality from maxmind.com, apivoid.com, ipqualityscore.com
- Easy to validate with a simple line code
Requirements
- PHP: 8.1 or higher
- Laravel 9.0 or higher
Quick Start
If you prefer to install this package into your own Laravel application, please follow the installation steps below
Installation
Step 1. Install a Laravel project if you don't have one already
https://laravel.com/docs/installation
Step 2. Require the current package using composer:
composer require funnydevjsc/laravel-email-filter
Step 3. Publish the controller file and config file
php artisan vendor:publish --provider="FunnyDev\EmailFilter\EmailFilterServiceProvider" --tag="email-filter"
If publishing files fails, please create corresponding files at the path config/email-filter.php and app\Http\Controllers\EmailFilterControllers.php from this package. And you can also further customize the EmailFilterControllers.php file to suit your project.
Step 4. Update the various config settings in the published config file:
After publishing the package assets a configuration file will be located at config/email-filter.php.
Testing
<?php namespace App\Console\Commands; use FunnyDev\EmailFilter\EmailFilterSdk; use Illuminate\Console\Command; class EmailFilterTestCommand extends Command { protected $signature = 'email-filter:test'; protected $description = 'Test EmailFilter SDK'; public function __construct() { parent::__construct(); } public function handle() { $instance = new EmailFilterSdk(); // Perform checking with fast mode turned on and only use $result['recommended'] as signal (true/false) $result = $instance->validate(email: 'testing@example.comB3Kin7YM', fast: true, score: false); // Perform a full checking $result = $instance->validate(email: 'f*cking@example.comB3Kin7YM', fast: false, score: true); // Explanation of results $result = [ 'query' => $email, 'recommend' => true, // Recommended value of whether to accept this email or not 'reason' => '', // Reason why the email is not recommended 'trustable' => [ 'exist' => true, // Does the email exist 'disposable' => false, // Is the email spam 'blacklist' => 0, // Percentage of blacklists as a float 'fraud_score' => 0, // Fraud score on a 100-point scale 'suspicious' => false, // Is the email suspicious of maliciousness 'high_risk' => false, // Is the email considered high risk of payment 'domain_type' => 'popular', 'domain_trust' => true, // Is the domain name trustworthy? 'domain_age' => '', 'dns_valid' => false, // Does DNS match between domain name and SMTP server? 'username' => true // Is the email address username trustworthy? ] ]; } }
Feedback
Respect us in the Laravel Việt Nam
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email contact@funnydev.vn or use the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
funnydevjsc/laravel-email-filter 适用场景与选型建议
funnydevjsc/laravel-email-filter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 115 次下载、GitHub Stars 达 9, 最近一次更新时间为 2024 年 09 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「filter」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 funnydevjsc/laravel-email-filter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 funnydevjsc/laravel-email-filter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 funnydevjsc/laravel-email-filter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Nova searchable filter for belongsTo relationships.
Symfony DataGridBundle
Extensible library for building notifications and sending them via different delivery channels.
Data provider for yii2
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
This Laravel Nova package allows you to detach filters from the filter dropdown
统计信息
- 总下载量: 115
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-10