denostr/stopforumspam
Composer 安装命令:
composer require denostr/stopforumspam
包简介
PHP Class for stopforumspam.com which can detect spammers
关键字:
README 文档
README
Documentation: stopforumspam.com/usage
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);
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-13