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. [API Development](/categories/api)
4. /
5. webignition/sfs-querier

ActiveLibrary[API Development](/categories/api)

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

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

0.1(7y ago)0173MITPHP &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 4d 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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2638d 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

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M309](/packages/openai-php-client)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M86](/packages/openai-php-laravel)[gmostafa/php-graphql-client

GraphQL client and query builder.

3218.2M29](/packages/gmostafa-php-graphql-client)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M155](/packages/algolia-algoliasearch-client-php)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

75116.4M198](/packages/meilisearch-meilisearch-php)[resend/resend-php

Resend PHP library.

617.2M39](/packages/resend-resend-php)

PHPackages © 2026

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