PHPackages                             brave-experiments/sku-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. brave-experiments/sku-php

AbandonedArchivedLibrary

brave-experiments/sku-php
=========================

Composer plugin for using sku workflow in Brave

0.5(6y ago)0811[1 issues](https://github.com/brave-experiments/sku-php/issues)[1 PRs](https://github.com/brave-experiments/sku-php/pulls)MPL-2.0PHPPHP ^7.4

Since Mar 11Pushed 2y ago2 watchersCompare

[ Source](https://github.com/brave-experiments/sku-php)[ Packagist](https://packagist.org/packages/brave-experiments/sku-php)[ RSS](/packages/brave-experiments-sku-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (7)Used By (0)

Composer plugin to use SKU workflows in Brave
---------------------------------------------

[](#composer-plugin-to-use-sku-workflows-in-brave)

The PHP library consists of:

- **generateSKUToken()** - You need to generate a SKU token for any item that is being displayed to the user. This function needs to be invoked on every page load for an item. See code [here](https://github.com/brave-experiments/sku-php/blob/master/src/Sku.php#L9)

    Parameters:

    - **sku**: String
    - **amount**: String
    - **currency**: String, should only be “BAT” for now.
    - **description**: String
    - **expiry**: String in RFC3339 format
- **validateOrderStatus** - Once the order id is returned by the rewards service, this wrapper can be used to check if the transaction was completed. See code [here](https://github.com/brave-experiments/sku-php/blob/master/src/Sku.php#L41)

    Parameters:

    - **host**: String,
    - **orderId**: String

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

2221d ago

PHP version history (2 changes)0.1PHP ^7.2

0.3PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/10fe903cf7278c3b33f56526aa14411c28c3b284fa7b87dbbb77e8b2d2d70f92?d=identicon)[pjumde](/maintainers/pjumde)

---

Top Contributors

[![corymcdonald](https://avatars.githubusercontent.com/u/5459225?v=4)](https://github.com/corymcdonald "corymcdonald (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/brave-experiments-sku-php/health.svg)

```
[![Health](https://phpackages.com/badges/brave-experiments-sku-php/health.svg)](https://phpackages.com/packages/brave-experiments-sku-php)
```

PHPackages © 2026

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