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
Requires
- php: >=5.4.0
- denostr/stopforumspam: ~0.1.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-24 06:20:18 UTC
README
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