limonte / spam-link-analyser
This package is abandoned and no longer maintained.
No replacement package was suggested.
Check probability of link is spam
v0.1.1
2016-09-19 14:28 UTC
Requires
- ext-curl: *
- paquettg/php-html-parser: ^1.7
Requires (Dev)
- phpunit/phpunit: ~5.2
This package is not auto-updated.
Last update: 2020-01-24 16:06:24 UTC
README
Usage:
$spamLinkAnalyser = new Limonte\SpamLinkAnalyser; $status = $spamLinkAnalyser->check($url); if ($status === SpamLinkAnalyser::OK) { // link is OK } else { // link is suspicious } if ($status === SpamLinkAnalyser::GOOGLE_BOT_DIFFERENT_REDIRECT) { // link has different redirect locations for browser and for Google Bot } if ($status === SpamLinkAnalyser::TOO_MUCH_REDIRECTS) { // link has 3 or more redirects }
Related libraries:
- Google Safebrowsing PHP library: limonte/google-safebrowsing
- McAfee SiteAdvisor PHP library: limonte/mcafee-siteadvisor
- PHP parser for Adblock Plus filters: limonte/php-adblock-parser