webignition/sfs-result-analyser
最新稳定版本:0.1
Composer 安装命令:
composer require webignition/sfs-result-analyser
包简介
Analyses results from api.stopforumspam.com, helps you figure out what to do
README 文档
README
Analyses results from api.stopforumspam.com, helps you figure out what to do.
Why?
You can use webignition/sfs-client to query api.stopforumspam.com and get back one or more webignition\SfsResultInterfaces\ResultInterface objects.
You've probably queried api.stopforumspam.com because you need to know if a given email address, IP address or username is known to be untrustworthy.
This helps with that.
Installation
composer require webignition/sfs-result-analyser
Usage
use webignition\SfsResultAnalyser\Analyser; use webignition\SfsResultInterfaces\ResultInterface; // We're assuming that $result is a ResultInterface object. $analyser = new Analyser(); // Does a given result indicate that the entity is not to be trusted? $analyser->isUntrustworthy($result)); // returns true or false // Is a given result's entity trustworthy? // Return a float between 0 (do not trust) and 1 (probably can be trusted) $trustworthiness = $analyser->calculateTrustworthiness($result);
See Also
Use webignition/sfs-querier for a package that contains webignition/sfs-result-analyser, webignition/sfs-client and provides detailed usage instructions.
统计信息
- 总下载量: 141
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-12