denostr/stopforumspam

PHP Class for stopforumspam.com which can detect spammers

0.1.0 2018-04-13 17:53 UTC

This package is not auto-updated.

Last update: 2024-12-22 05:29:29 UTC


README

Documentation: stopforumspam.com/usage

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

php composer.phar require denostr/stopforumspam

or add

"denostr/stopforumspam": "~0.1.0"

to the require section of your composer.json file.

Usage

$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();

Set multiple params

$client->ip(['1.2.3.4', '4.6.7.8', '9.10.11.12']);
$client->email(['first@example.com', 'second@example.com']);

Debug mode

$client->debug(true);

Wildcards

$client->nobademail(true);