webignition/sfs-result-analyser

分析来自api.stopforumspam.com的结果,帮助您确定要做什么

0.1 2019-04-12 12:01 UTC

This package is auto-updated.

Last update: 2024-09-13 00:07:10 UTC


README

分析来自api.stopforumspam.com的结果,帮助您确定要做什么。

为什么?

您可以使用webignition/sfs-client来查询api.stopforumspam.com并返回一个或多个webignition\SfsResultInterfaces\ResultInterface对象。

您可能已经查询了api.stopforumspam.com,因为您需要知道给定的电子邮件地址、IP地址或用户名是否被认定为不可信。

这有助于解决这个问题。

安装

composer require webignition/sfs-result-analyser

使用方法

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

另请参阅

使用webignition/sfs-querier,这是一个包含webignition/sfs-result-analyserwebignition/sfs-client并提供详细使用说明的包。