13/04
2018
PHP Class for stopforumspam.com which can detect spammers
Documentation: stopforumspam.com/usage, (*1)
The preferred way to install this extension is through composer., (*3)
php composer.phar require denostr/stopforumspam
or add, (*4)
"denostr/stopforumspam": "~0.1.0"
to the require
section of your composer.json
file., (*5)
$client = new denostr\stopforumspam\Client(); // Set IP for check $client->ip('1.2.3.4'); // Set email for check $client->email('mail@example.com') // Set response JSON format $client->format(denostr\stopforumspam\Client::FORMAT_JSON); $result = $client->request();
$client->ip(['1.2.3.4', '4.6.7.8', '9.10.11.12']); $client->email(['first@example.com', 'second@example.com']);
$client->debug(true);
$client->nobademail(true);