PHPackages                             webignition/sfs-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. webignition/sfs-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

webignition/sfs-client
======================

HTTP client for querying api.stopforumspam.com

0.2(7y ago)0195[1 issues](https://github.com/webignition/sfs-client/issues)1MITPHPPHP &gt;=7.2.0

Since Apr 12Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (1)

SFS Client
==========

[](#sfs-client)

PHP HTTP client for querying [api.stopforumspam.com](https://www.stopforumspam.com/usage).

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

[](#installation)

`composer require webignition/sfs-client`

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](/docs/creating-a-client.md)
- optionally [create a request](/docs/creating-a-request.md) if not using a single-value convenience method
- [query](/docs/querying.md) for 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](/docs/creating-a-request.md) and [querying](/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.

See [webignition/sfs-result-analyser](https://github.com/webignition/sfs-result-analyser)for help with that.

See Also
--------

[](#see-also)

Use [webignition/sfs-querier](https://github.com/webignition/sfs-querier) for a package that contains [webignition/sfs-result-analyser](https://github.com/webignition/sfs-result-analyser), [webignition/sfs-client](https://github.com/webignition/sfs-client) and provides detailed usage instructions.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

2

Last Release

2637d 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 (9 commits)")

---

Tags

clientspamforumstopforumspam.com

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k36](/packages/neuron-core-neuron-ai)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B3.9k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k116](/packages/oat-sa-tao-core)

PHPackages © 2026

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