PHPackages                             webignition/sfs-querier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. webignition/sfs-querier

ActiveLibrary

webignition/sfs-querier
=======================

Meta package for querying api.stopforumspam.com and providing help analysing/understanding results

0.1(7y ago)0108MITPHP &gt;=7.2.0

Since Apr 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/webignition/sfs-querier)[ Packagist](https://packagist.org/packages/webignition/sfs-querier)[ Docs](https://github.com/webignition/sfs-querier)[ RSS](/packages/webignition-sfs-querier/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

SFS Querier
===========

[](#sfs-querier)

PHP (meta) package for querying api.stopforumspam.com and providing help analysing/understanding results.

Installation
------------

[](#installation)

`composer require webignition/sfs-querier`

api.stopformumspam.com overview
-------------------------------

[](#apistopformumspamcom-overview)

[api.stopforumspam.com](https://www.stopforumspam.com/usage) can be queried by email address, email hash, ip address or username. Optional flags can be provided to influence what types of results are returned.

Read the [api.stopforumspam.com usage guide](https://www.stopforumspam.com/usage) first if unfamiliar.

Usage
-----

[](#usage)

- [create client](https://github.com/webignition/sfs-client/blob/master/docs/creating-a-client.md)
- optionally [create a request](https://github.com/webignition/sfs-client/blob/master/docs/creating-a-request.md)if not using a single-value convenience method
- [query](https://github.com/webignition/sfs-client/blob/master/docs/querying.md) for results
- understand and analyse results

Quick Usage Example
-------------------

[](#quick-usage-example)

```
use webignition\SfsClient\Client;
use webignition\SfsResultInterfaces\ResultInterface;

$client = new Cient();

// Query against a single email address
$result = $client->queryEmail('user@example.com');

// $result will be NULL if the HTTP request to query api.stopforumspam.com failed for any reason

if ($result instanceof ResultInterface) {
    $result->getType();                 // 'email', 'emailHash', 'ip' or 'username'
    $result->getFrequency();            // int
    $result->getAppears();              // bool
    $result->getValue();                // the email address, email hash, IP address or username
    $result->getLastSeen()              // \DateTime()|null
    $result->getConfidence()            // float|null
    $result->getDelegatedCountryCode(); // string|null
    $result->getCountryCode();          // string|null
    $result->getAsn();                  // int|null
    $result->isBlacklisted();           // bool
    $result->isTorExitNode();           // bool|null
}
```

Read more about [creating requests](https://github.com/webignition/sfs-client/blob/master/docs/creating-a-request.md) and [querying](https://github.com/webignition/sfs-client/blob/master/docs/querying.md).

Understanding and Analysing Results
-----------------------------------

[](#understanding-and-analysing-results)

You probably want to know if a given email address/IP address/username can be trusted to perform an operation within your application.

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2590d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/278be37d1b614ef0c40b22b777663e545a1f6d69dd4f908888cbb557ad7e608f?d=identicon)[webignition](/maintainers/webignition)

---

Top Contributors

[![webignition](https://avatars.githubusercontent.com/u/76546?v=4)](https://github.com/webignition "webignition (5 commits)")

---

Tags

clientanalyserqueryanalyzerstopforumspam.comquerier

### Embed Badge

![Health badge](/badges/webignition-sfs-querier/health.svg)

```
[![Health](https://phpackages.com/badges/webignition-sfs-querier/health.svg)](https://phpackages.com/packages/webignition-sfs-querier)
```

###  Alternatives

[guzzlehttp/guzzle

Guzzle is a PHP HTTP client library

23.4k991.0M31.1k](/packages/guzzlehttp-guzzle)[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[gmostafa/php-graphql-client

GraphQL client and query builder.

3217.6M25](/packages/gmostafa-php-graphql-client)[bvanhoekelen/performance

PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.

521774.3k4](/packages/bvanhoekelen-performance)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
