PHPackages                             99designs/sipht - 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. 99designs/sipht

AbandonedArchivedLibrary[API Development](/categories/api)

99designs/sipht
===============

A PHP client for the Sift Science REST API

1.0.0(9y ago)233.2k1MITPHP

Since Sep 12Pushed 8y ago6 watchersCompare

[ Source](https://github.com/99designs/sipht)[ Packagist](https://packagist.org/packages/99designs/sipht)[ RSS](/packages/99designs-sipht/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (2)Versions (9)Used By (0)

A PHP client for the [Sift Science](https://siftscience.com/) REST API.

Note: Sift Science now offer their own PHP bindings [here](https://github.com/SiftScience/sift-php).

[![Build Status](https://camo.githubusercontent.com/6b54e4594c868ce68f3913b1cb19b4e3f1b82d7843cd85f8b41b9c51deff3a64/68747470733a2f2f7472617669732d63692e6f72672f393964657369676e732f73697068742e706e67)](https://travis-ci.org/99designs/sipht)

This client supports the three basic operations exposed by the Sift API: posting events, labelling users and fetching scores.

The currently supported API version is **`v203`**.

Instantiating a client
----------------------

[](#instantiating-a-client)

Interactions with the API occur via `Sift\Client`. You instantiate a client by passing your API key to its constructor:

```
$client = new Sift\Client('my-api-key');
```

The following errors may be thrown by any client request:

- `Sift\Exception\BadRequestException`: HTTP 40x; the request was rejected by the API
- `Sift\Exception\ServerErrorException`: HTTP 50x; the API endpoint suffered some internal problem
- `Sift\Exception\HttpException`: any other exception generated in the course of making the HTTP request (e.g. too many redirects)

Posting events
--------------

[](#posting-events)

Create instances of `Sift\Event`, e.g.:

```
$event = new Sift\Event(array(
    '$type' => Sift\Event::TYPE_TRANSACTION,
    '$user_id' => '1234',
    // ...
));
```

Alternatively, factory constructors are provided for each event type:

```
$event = Sift\Event::transactionEvent(array(
    '$user_id' => '1234',
    // ...
));
```

Then post the event via `Sift\Client::postEvent()`:

```
$response = $client->postEvent($event);
```

See  for more information on posting event data.

Labelling users
---------------

[](#labelling-users)

Create label objects using the factory methods of `Sift\Label`, e.g.:

```
// Label a user as fraudulent, optionally specifying reason codes and an explanation:
$reasons = array(Sift\Label::REASON_SPAM);
$label = Sift\Label::bad($reasons, 'User engaged in phishing attack')

// Alternatively, correct a false positive by labelling a user as non-fraudulent:
$good = Sift\Label::good('Mistakenly identified as fraudulent');
```

Then post the event via `Sift\Client::labelUser()`:

```
$response = $client->labelUser('some-user-id', $label);
```

See  for more information on labelling users.

Fetching scores
---------------

[](#fetching-scores)

Fetch fraud score data for a user via `Sift\Client::userScore()`:

```
$score = $client->userScore('some-user-id');
```

This returns an instance of `Sift\Score`. Note that if no events have been captured for the given user, a `Sift\Exception\ScoreException` will be thrown.

See  for more information on fetching user fraud scores.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~229 days

Recently: every ~296 days

Total

7

Last Release

3294d ago

Major Versions

0.2.3 → 1.0.02017-06-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d94165c13417941a32d14d4468f27868c7643e96495090cfd33009055ea48c?d=identicon)[mtibben](/maintainers/mtibben)

![](https://avatars.githubusercontent.com/u/1178572?v=4)[Giacomo Gatelli](/maintainers/arthens)[@arthens](https://github.com/arthens)

![](https://avatars.githubusercontent.com/u/29794?v=4)[Paul Leitmanis](/maintainers/sinamt)[@sinamt](https://github.com/sinamt)

---

Top Contributors

[![harto](https://avatars.githubusercontent.com/u/103448?v=4)](https://github.com/harto "harto (28 commits)")[![bradfeehan](https://avatars.githubusercontent.com/u/1052806?v=4)](https://github.com/bradfeehan "bradfeehan (4 commits)")[![DanWilliamsAu](https://avatars.githubusercontent.com/u/5985804?v=4)](https://github.com/DanWilliamsAu "DanWilliamsAu (2 commits)")[![vektah](https://avatars.githubusercontent.com/u/2247982?v=4)](https://github.com/vektah "vektah (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/99designs-sipht/health.svg)

```
[![Health](https://phpackages.com/badges/99designs-sipht/health.svg)](https://phpackages.com/packages/99designs-sipht)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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