PHP Classes

PHP Spam Check: Check if a text can be spam testing invalid words

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 443 All time: 6,232 This week: 673Up
Version License PHP version Categories
spam-check 1.0GNU Lesser Genera...4.2Algorithms, PHP 5, Text processing, V...


This class can check if a text can be spam testing invalid words.

It can analyse a given text and check if it contains too many words that look invalid.

The class returns a result that determines if the text can be spam, discarding words that were considered invalid but were whitelisted.

Innovation Award
PHP Programming Innovation award nominee
January 2014
Number 4
Determining if a text message can be spam is hard. However, spam message often have invalid words to workaround spam filters.

This class provides a solution to detect if a text can be spam by analyzing the number of words that seem to be invalid, ignoring words from white lists that should be accepted as valid.

Manuel Lemos
Picture of Roger Baklund
  Performance   Level  
Name: Roger Baklund is available for providing paid consulting. Contact Roger Baklund .
Classes: 7 packages by
Country: Norway Norway
Age: 57
All time rank: 18056 in Norway Norway
Week rank: 271 Up1 in Norway Norway Up
Innovation award
Innovation award
Nominee: 4x





?><html><head><title>SpamChecker test</title>
<h1>SpamChecker test</h1>
<p>Test form, enter something:</p>
<form method="post" style="float:left;margin:1em;">
<div style="width:15em;border:solid 1px black;padding:1em;background-color:silver;">
<fieldset><textarea rows="8" name="text"></textarea></fieldset>
<fieldset>A:<input type="text" name="a" value="" /></fieldset>
<fieldset>B:<input type="text" name="b" value="" /></fieldset>
<fieldset>C:<input type="text" name="c" value="" /></fieldset>
<fieldset>sessionkey:<input type="text" name="sessionkey" value="HlglRskGghwf" /></fieldset>
<input type="submit" value="Go" />
'<h2>Input accepted, spam check report:</h2>'.

  • screenshot_test_1.png
  • screenshot_test_2.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file demo_AutoSpamChecker.php Example Demo, how to automatically evaluate all input (by including script)
Plain text file SpamChecker.class.php Class Main class
Accessible without login Plain text file SpamChecker_test_1.php Example Demo 1
Accessible without login Plain text file SpamChecker_test_2.php Example Demo 2
Plain text file VowCon.php Class Vowel/consonant analysis 181KB
Downloadspam-check-2014-03-01.tar.gz 181KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
VowCon Download .zip .tar.gz For vowel/consonant analysis Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,232
This week:673Up