strilezkijslawa/laravel-spam-protector 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

strilezkijslawa/laravel-spam-protector

Composer 安装命令:

composer require strilezkijslawa/laravel-spam-protector

包简介

Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api https://www.stopforumspam.com/usage

README 文档

README

Latest Version on Packagist Software License Build Status Total Downloads

Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api https://www.stopforumspam.com/usage

Install

Via Composer

$ composer require johannebert/laravel-spam-protector

Note: If you are using Laravel 5.5, the next steps are unnecessary. Laravel Spam Protector supports Laravel Package Discovery.

  • After updating composer, add the ServiceProvider to the providers array in config/app.php
JohannEbert\LaravelSpamProtector\SpamProtectorServiceProvider::class
  • and for aliases
'SpamProtector' => JohannEbert\LaravelSpamProtector\Facades\SpamProtector::class,

Usage

$spamProtector = new SpamProtector();

if($spamProtector->isSpamEmail('john@example.com'))
{
    // If given email was registered as a spam your code goes here
}

Usage Fasade

if(SpamProtector::isSpamEmail('john@example.com'))
{
    // If given email was registered as a spam your code goes here
}

Testing

$ composer test

or

$ phpunit

Security

If you discover any security related issues, please email johann.ebert@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-12