mhoffmann / phpdnsrbl
simple DNSRBL lookup
Installs: 11 116
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- doctrine/cache: ^1.5
Requires (Dev)
- phpunit/phpunit: 4.5.0
This package is not auto-updated.
Last update: 2024-04-13 23:51:42 UTC
README
Simple DNSRBL lookup forked from jbboehr/dnsbl.php
Installation
With composer
{ "require": { "mhoffmann/dnsrbl": "0.1.*" } }
Usage
$rbl = new DNSRBL( array( 'dnsbl' => array( 'sbl.spamhaus.org' ), 'surbl' => array( 'dbl.spamhaus.org' ) ) ); //checks the surbl var_export($rbl->isListed('dbltest.com')); echo ";\n"; //checks the dnsbl var_export($rbl->getListingBlacklists('127.0.0.2')); echo ";\n";
true; array ( 0 => 'sbl.spamhaus.org', );
License
This project is licensed under the PHP license.