PHP code example of dastanaron / spamchecker

1. Go to this page and download the library: Download dastanaron/spamchecker 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/ */

    

dastanaron / spamchecker example snippets


use dastanaron\spamchecker\SpamChecker;

$checker = new SpamChecker('blacklist.txt', 5);

// Example clean address
var_dump($checker->check("mail.ru"));

// Example spam address
var_dump($checker->check("182.244.194.17"));