2017 © Pedro Peláez
 

library spam-canner

Extensible Spam Detection Filters based on snook.ca post

image

cmdz/spam-canner

Extensible Spam Detection Filters based on snook.ca post

  • Wednesday, January 28, 2015
  • by AndyWendt
  • Repository
  • 1 Watchers
  • 3 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Spam Canner

Build Status Coverage Status Scrutinizer Code Quality, (*1)

Extensible Spam Detection Filters based on this snook.ca post, (*2)

Installation

Available on Packagist. Autoloading is PSR-4 compatible., (*3)

composer require cmdz/spam-canner, (*4)

Usage

Filters are located in the src/Filters directory. You can add your own filters as well, they just need to implement CmdZ\SpamCanner\Filters\FilterInterface and then add them to the $filters array that you pass to Score(), (*5)


$spamScoreIncrease = 1; $currentCommentBody = 'abcd'; $previousCommentBody = 'abcd'; $testLink = 'http://www.site.de'; $spammyTlds = ['de']; $domainParser = new \CmdZ\SpamCanner\Utilities\DomainParser; $filters = [ new BodyInPreviousComment($spamScoreIncrease, $currentCommentBody, $previousCommentBody), new Tlds($spamScoreIncrease, $testLink, $spammyTlds, $domainParser) ]; $utils = new \CmdZ\SpamCanner\Utilities\Utilities; $score = new Score($filters, $utils); $result = $score->getScore(); $expected = 2;

Available Filters

See snook.ca post for the ideas behind each filter., (*6)

Testing

bash $ phpunit, (*7)

License

The MIT License (MIT). Please see the License File for more information., (*8)

The Versions

28/01 2015

dev-master

9999999-dev https://github.com/AndyWendt/spam-canner

Extensible Spam Detection Filters based on snook.ca post

  Sources   Download

MIT

The Requires

 

The Development Requires

filter spam detection

28/01 2015

0.2.1

0.2.1.0 https://github.com/AndyWendt/spam-canner

Extensible Spam Detection Filters based on snook.ca post

  Sources   Download

MIT

The Requires

 

The Development Requires

filter spam detection

28/01 2015

0.2

0.2.0.0 https://github.com/AndyWendt/spam-canner

Extensible Spam Detection Filters based on snook.ca post

  Sources   Download

MIT

The Requires

 

The Development Requires

filter spam detection

20/04 2014

0.1

0.1.0.0 https://github.com/AndyWendt/spam-canner

Extensible Spam Detection Filters

  Sources   Download

MIT

The Requires

 

The Development Requires

filter spam detection