betacie/php-surblclient

PHP Client for SURBL to validate Blacklisted URLs

This package's canonical repository appears to be gone and the package has been frozen as a result.

dev-master 2013-03-20 21:15 UTC

This package is not auto-updated.

Last update: 2020-04-07 07:24:38 UTC


README

More details at: http://www.surbl.org/guidelines

Usage:

Add this in your composer.json:

{
	"require": {
		"betacie/php-surblclient": "dev-master"
	}
}

Then use the Blacklist class with your favorite autoloader:

$url_c = new \Blacklist\Blacklist("http://test.surbl.org");

if($url_c->spam_check) {
    echo "SPAM SPAM!";
}
else {
    echo "SAFE!";
}

This is ported from surblclient of Python. If you are looking for a Python SURBL Client: https://github.com/infixfilip/surblclient

Blogs:

PHP Client Library for the surbl.org blacklists

Contributors:

Abhinay Omkar <abhiomkar+nospam@gmail.com> Maxime Valette maxime@maximevalette.com