PHPackages                             riskified/php\_sdk - 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. riskified/php\_sdk

ActiveLibrary[API Development](/categories/api)

riskified/php\_sdk
==================

Implementation of the Riskified API in php

v1.10.0(2mo ago)7922.6k—4.6%19[7 issues](https://github.com/Riskified/php_sdk/issues)[6 PRs](https://github.com/Riskified/php_sdk/pulls)1PHP

Since Apr 19Pushed 2mo ago33 watchersCompare

[ Source](https://github.com/Riskified/php_sdk)[ Packagist](https://packagist.org/packages/riskified/php_sdk)[ RSS](/packages/riskified-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (30)Used By (1)

Riskified PHP SDK
=================

[](#riskified-php-sdk)

version: 1.10.1
---------------

[](#version-1101)

See *samples/* for examples on how to use this SDK.

Migrating to API Version 2
--------------------------

[](#migrating-to-api-version-2)

API Version 2 introduces new features (and breaks some old ones).

### Order Webhook

[](#order-webhook)

This version represents a shift from data-driven order handling to multiple API endpoints, each designed for a specific purpose. These include:

- `/api/create` - served by `$transport->createOrder()`
- `/api/update` - served by `$transport->updateOrder()`
- `/api/submit` - served by `$transport->submitOrder()`
- `/api/refund` - served by `$transport->refundOrder()`
- `/api/cancel` - served by `$transport->cancelOrder()`

Refer to the online [documentation](http://apiref.riskified.com) for more details. When migrating from version 1, you'll need to separate the different calls to Riskified's API to support this new process.

### Decision Notifications

[](#decision-notifications)

#### Constructor $headers argument format

[](#constructor-headers-argument-format)

The format of the `$headers` argument when constructing a new `Riskified\DecisionNotification\Notification` instance has changed. The constructor now expects an associative array of all the HTTP headers of the request, and *not* a flat array of strings, as in previous versions of this SDK.

This change should simplify integration since the argument now follows the format of the return value of the popular PHP/Apache function [`getallheaders()`](http://php.net/manual/en/function.getallheaders.php).

#### API v2 payload format

[](#api-v2-payload-format)

Notification requests in API version 2 now contain a JSON encoded payload which is more flexible and easily extended.

If you are already using the `Notification` class in version 1, there are no additional actions required to support the migration to JSON, as this SDK handles the new data format seamlessly.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance66

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~448 days

Total

22

Last Release

76d ago

### Community

Maintainers

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

---

Top Contributors

[![rich-spitkovsky-riskified](https://avatars.githubusercontent.com/u/44982954?v=4)](https://github.com/rich-spitkovsky-riskified "rich-spitkovsky-riskified (43 commits)")[![arungopalRF](https://avatars.githubusercontent.com/u/36234947?v=4)](https://github.com/arungopalRF "arungopalRF (31 commits)")[![ErezSela](https://avatars.githubusercontent.com/u/13746084?v=4)](https://github.com/ErezSela "ErezSela (18 commits)")[![riskx](https://avatars.githubusercontent.com/u/2304872?v=4)](https://github.com/riskx "riskx (16 commits)")[![itaywaxman](https://avatars.githubusercontent.com/u/5214275?v=4)](https://github.com/itaywaxman "itaywaxman (13 commits)")[![dbarond](https://avatars.githubusercontent.com/u/8545107?v=4)](https://github.com/dbarond "dbarond (8 commits)")[![mooseriskified](https://avatars.githubusercontent.com/u/44244405?v=4)](https://github.com/mooseriskified "mooseriskified (7 commits)")[![pm-gm](https://avatars.githubusercontent.com/u/7585553?v=4)](https://github.com/pm-gm "pm-gm (5 commits)")[![Gering112](https://avatars.githubusercontent.com/u/45523369?v=4)](https://github.com/Gering112 "Gering112 (3 commits)")[![bobmeow](https://avatars.githubusercontent.com/u/22312435?v=4)](https://github.com/bobmeow "bobmeow (3 commits)")[![chadsmithbhn](https://avatars.githubusercontent.com/u/64145399?v=4)](https://github.com/chadsmithbhn "chadsmithbhn (3 commits)")[![diogoyaguas](https://avatars.githubusercontent.com/u/25355410?v=4)](https://github.com/diogoyaguas "diogoyaguas (2 commits)")[![marcelaraujo](https://avatars.githubusercontent.com/u/421794?v=4)](https://github.com/marcelaraujo "marcelaraujo (1 commits)")[![DoDSoftware](https://avatars.githubusercontent.com/u/8271955?v=4)](https://github.com/DoDSoftware "DoDSoftware (1 commits)")[![bnayah](https://avatars.githubusercontent.com/u/13419001?v=4)](https://github.com/bnayah "bnayah (1 commits)")[![bernardodemelo](https://avatars.githubusercontent.com/u/128500694?v=4)](https://github.com/bernardodemelo "bernardodemelo (1 commits)")[![stephenjwinn](https://avatars.githubusercontent.com/u/4694799?v=4)](https://github.com/stephenjwinn "stephenjwinn (1 commits)")[![jchiupro](https://avatars.githubusercontent.com/u/29709969?v=4)](https://github.com/jchiupro "jchiupro (1 commits)")[![tomas-amaro](https://avatars.githubusercontent.com/u/184257054?v=4)](https://github.com/tomas-amaro "tomas-amaro (1 commits)")

### Embed Badge

![Health badge](/badges/riskified-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/riskified-php-sdk/health.svg)](https://phpackages.com/packages/riskified-php-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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