Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api https://www.stopforumspam.com/usage
johannebert/laravel-spam-protector is a Laravel package for laravel spam protector class to check ip, name, email for spam that uses the stopforumspam api https://www.stopforumspam.com/usage.
It currently has 10 GitHub stars and 31.110 downloads on Packagist (latest version v7.0.0).
Install it with composer require johannebert/laravel-spam-protector.
Discover more Laravel packages by johannebert
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Spam Protector class to check ip, name, email for spam that uses the StopForumSpam Api https://www.stopforumspam.com/usage
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.
config/app.phpJohannEbert\LaravelSpamProtector\SpamProtectorServiceProvider::class
'SpamProtector' => JohannEbert\LaravelSpamProtector\Facades\SpamProtector::class,
$spamProtector = new SpamProtector();
if($spamProtector->isSpamEmail('[email protected]'))
{
// If given email was registered as a spam your code goes here
}
if(SpamProtector::isSpamEmail('[email protected]'))
{
// If given email was registered as a spam your code goes here
}
$ composer test
or
$ phpunit
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.