Skip to content

p-andrey/laravel-spam-protector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('[email protected]'))
{
    // If given email was registered as a spam your code goes here
}

Usage Fasade

if(SpamProtector::isSpamEmail('[email protected]'))
{
    // 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 [email protected] instead of using the issue tracker.

Credits

License

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%