PHPackages                             siftscience/sift-partner-php - 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. siftscience/sift-partner-php

ActiveLibrary[API Development](/categories/api)

siftscience/sift-partner-php
============================

Sift Science Partnership API PHP library

0.0.3(9y ago)0363[4 issues](https://github.com/SiftScience/sift-partner-php/issues)MITPHPPHP &gt;=5.0.0

Since Nov 24Pushed 9y ago91 watchersCompare

[ Source](https://github.com/SiftScience/sift-partner-php)[ Packagist](https://packagist.org/packages/siftscience/sift-partner-php)[ Docs](https://github.com/SiftScience/sift-partner-php)[ RSS](/packages/siftscience-sift-partner-php/feed)WikiDiscussions master Synced 1mo ago

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

Sift Science PHP Bindings [![](https://camo.githubusercontent.com/26c860f6081cfac6f340fab7758acc0bfd0a81cd7b598101fee425302c7920a8/68747470733a2f2f7472617669732d63692e6f72672f53696674536369656e63652f736966742d706172746e65722d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SiftScience/sift-partner-php)
=================================================================================================================================================================================================================================================================================================================================

[](#sift-science-php-bindings-)

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

[](#installation)

### With Composer

[](#with-composer)

1. Add siftscience/sift-partner-php as a dependency in composer.json.

    ```
    "require": {
        ...
        "siftscience/sift-partner-php" : "1.*"
        ...
    }

    ```
2. Run `composer update`.
3. Now `SiftClient` will be autoloaded into your project.

    ```
    require 'vendor/autoload.php';

    $partner_client = new SiftClient('my_api_key', 'my_partner_id');

    ```

### Manually

[](#manually)

1. Download the latest release.
2. Extract into a folder in your project root named "sift-partner-php".
3. Include `SiftClient` in your project like this:

    ```
    require 'sift-partner-php/lib/Services_JSON-1.0.3/JSON.php';
    require 'sift-partner-php/lib/SiftRequest.php';
    require 'sift-partner-php/lib/SiftResponse.php';
    require 'sift-partner-php/lib/SiftClient.php';

    $partner_client = new SiftClient('my_api_key', 'my_partner_id');

    ```

Usage
-----

[](#usage)

### Create a new account

[](#create-a-new-account)

Here's an example that creates a new merchant account.

```
// Note: this will only work once, afterwards you will receive an
// error as the merchant account with these details has already been created
$partner_client = new SiftClient('my_api_key', 'my_partner_id');
$response = $partner_client->new_account(
  "merchantsite.com", // the url for the merchant's site
  "shopowner@merchantsite.com", // an email belonging to the merchant
  "johndoe@merchantsite.com", // an email used to log in to Sift
  "s0m3l0ngp455w0rd" // password associated with that log in
);

$response->isOk();

```

### Get a list of accounts created by you

[](#get-a-list-of-accounts-created-by-you)

```
$partner_client = new SiftClient('my_api_key', 'my_partner_id');
$response = $partner_client->getAccounts();

$response->isOk();

```

### Configure the http notification endpoint and threshold for all of your merchants.

[](#configure-the-http-notification-endpoint-and-threshold-for-all-of-your-merchants)

```
// Note: The %s must appear exactly once in your notification url.
$partner_client = new SiftClient('my_api_key', 'my_partner_id');
$response = $partner_client->updateNotificationConfig('http://your.url.endpoint/someting?id=%s', 0.60);  //This sets the threshold to a 60 (0.60*100)

```

Contributing
------------

[](#contributing)

Run the tests from the project root with [PHPUnit](http://phpunit.de) like this:

```
phpunit --bootstrap vendor/autoload.php test/SiftClientTest

```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

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 ~584 days

Total

2

Last Release

3607d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0d418d26b672113e302043b0f5bdb989861122d3dba0a0ccd5d64a29dbeeaa2?d=identicon)[siftscience](/maintainers/siftscience)

---

Top Contributors

[![nickhurlburt](https://avatars.githubusercontent.com/u/10714292?v=4)](https://github.com/nickhurlburt "nickhurlburt (2 commits)")

---

Tags

phpfraudsiftsift sciencesift science partnership api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/siftscience-sift-partner-php/health.svg)

```
[![Health](https://phpackages.com/badges/siftscience-sift-partner-php/health.svg)](https://phpackages.com/packages/siftscience-sift-partner-php)
```

###  Alternatives

[siftscience/sift-php

Sift Science PHP library

202.8M2](/packages/siftscience-sift-php)[fingerprint/fingerprint-pro-server-api-sdk

Fingerprint Server API provides a way for validating visitors’ data issued by Fingerprint Pro.

30223.1k1](/packages/fingerprint-fingerprint-pro-server-api-sdk)

PHPackages © 2026

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