New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

johannebert/laravel-spam-protector

Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api https://www.stopforumspam.com/usage
31,153 10
Install
composer require johannebert/laravel-spam-protector
Latest Version:v7.0.0
PHP:>=7.2|^8.0
Laravel:6 – 10
Older releases:5
License:MIT
Last Updated:Jul 12, 2023
Links: GitHub  ·  Packagist
Maintainer: johannebert

Laravel Spam Protector

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.

Related Packages

nickurt/laravel-stopforumspam

StopForumSpam for Laravel 11.x/12.x/13.x

76,771 69
sayakb/akismet

Laravel 4.1 Akismet SPAM Processing Engine, Fork of kenmoini/akismet

675 2
kenmoini/akismet

Laravel 4 Akismet SPAM Processing Engine

71 33
luacap/captcha

Captcha library for Laravel framework.

37 0
msurguy/honeypot

Honeypot spam prevention

1,337,975 436

Version History

Version Released PHP Laravel License
v7.0.0 >=7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v6.1.0 >=7.2|^8.0 ^6.0|^7.0|^8.0 MIT
v6.0.0 >=7.2|^8.0 ^6.0|^7.0|^8.0 MIT
v5.0.0 ^7.2 ^6.0|^7.0|^8.0 MIT
v4.0.0 ^7.2 ^6.0|^7.0 MIT