denostr/yii2-stopforumspam

Yii2 Component for https://www.stopforumspam.com

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

0.1.2 2018-06-20 21:03 UTC

This package is not auto-updated.

Last update: 2024-04-28 02:37:48 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

composer require denostr/yii2-stopforumspam "~0.1.0"

or add

"denostr/stopforumspam": "~0.1.0"

to the require section of your composer.json file.

Then add to config:

'components' => [
	...
	'stopforumspam' => [
		'class' => 'denostr\stopforumspam\yii\Client',
		'format' => 'json',
	],
],

Usage

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

$result = $client->request();

Documentation

API usage stopforumspam.com/usage

Client denostr/stopforumspam