PHP Client for SURBL to validate Blacklisted URLs
PHP
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead of abhiomkar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Blacklist
.gitignore
README.md
composer.json

README.md

PHP Client Library for the surbl.org blacklists

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