PHP code example of johannebert / laravel-spam-protector
1. Go to this page and download the library: Download johannebert/laravel-spam-protector library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
johannebert / laravel-spam-protector example snippets
JohannEbert\LaravelSpamProtector\SpamProtectorServiceProvider::class
'SpamProtector' => JohannEbert\LaravelSpamProtector\Facades\SpamProtector::class,
php
$spamProtector = new SpamProtector();
if($spamProtector->isSpamEmail('[email protected]'))
{
// If given email was registered as a spam your code goes here
}
php
if(SpamProtector::isSpamEmail('[email protected]'))
{
// If given email was registered as a spam your code goes here
}