PHPackages                             coreto/coreto-rcs-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. coreto/coreto-rcs-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

coreto/coreto-rcs-sdk
=====================

An SDK used for the collection and validation of the KPIs used in the Coreto DRS

11PHP

Since Nov 29Pushed 3y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Coreto RCS SDK
==============

[](#coreto-rcs-sdk)

An SDK used for the collection and validation of the KPIs used in the Coreto DRS

Dependencies
------------

[](#dependencies)

- PHP &gt;=7.4

Installation via Composer
-------------------------

[](#installation-via-composer)

To install simply run:

```
composer require coreto/coreto-rcs-sdk

```

Or add it to `composer.json` manually:

```
{
    "require": {
        "coreto/coreto-rcs-sdk": "~1"
    }
}
```

Direct usage
------------

[](#direct-usage)

```
use Coreto\CoretoRCSSDK\Client;

$reputationCollectionClient = new Client(
    [
        'react' => null, // Key-value pairs of allowed action and allowed fluctuation for that action
        'comment' => 2,
        'opinion' => 4
    ]
);

$reputationCollectionClient->validate([
    'account_did' => 'did:example:example1', // The account DID
    'action_date' => 1669121362000, // The unix timestamp in ms of the action
    'action_type' => 'react', // The action type (must be one of the allowed types)
    'trust' => 1, // The trust value (must be less than the score fluctuation if one is set)
    'performance' => 0.3, // The performance value (must be less than the score fluctuation if one is set)
    'identifier' => 123 // The identifier of the action (can be used if actions are first cached and then sent to the ledger in order to validate the sync)
]);
```

Errors
------

[](#errors)

```
// Initialization exception
try {
$reputationCollectionClient = new Client(
    []
);
} catch (Exception $e) {
    // Action whitelist cannot be empty
}

// Score fluctuation error
$reputationCollectionClient = new Client(
    [
        'react' => 1
    ]
);

try {
    $reputationCollectionClient->validate([
        'account_did' => 'did:example:example1',
        'action_date' => 1669121362000,
        'action_type' => 'react',
        'trust' => 5,
        'performance' => 0.3,
        'identifier' => 123
    ]);
} catch (Coreto\Coreto\CoretoReputationCollectionSDK\InvalidScoreChangeException $e) {
    // Scores cannot fluctuate more than the amount set on initialization
}

// Invalid action type error
$reputationCollectionClient = new Client(
    [
        'react' => null,
        'comment' => 2,
        'opinion' => 4
    ]
);

try {
    $reputationCollectionClient->validate([
        'account_did' => 'did:example:example1',
        'action_date' => 1669121362000,
        'action_type' => 'create',
        'trust' => 0,
        'performance' => 0.3,
        'identifier' => 123
    ]);
} catch (Coreto\Coreto\CoretoReputationCollectionSDK\InvalidActionException $e) {
    // Action type is not in the whitelist
}

// Invalid action schema error
try {
    $reputationCollectionClient->validate([
        // 'account_did' => 'did:example:example1',
        'action_date' => 1669121362000,
        'action_type' => 'react',
        'trust' => 0,
        'performance' => 0.3,
        'identifier' => 123
    ]);
} catch (Coreto\Coreto\CoretoReputationCollectionSDK\InvalidActionSchemaException $e) {
    // Action type is not in the whitelist
}
```

Todo
----

[](#todo)

1. Add unit and integration tests
2. Update documentation

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9771693ab8dae3ef29ca767dfdef6cbbec4bf48e9f75e26e19f9848dbc8c6f72?d=identicon)[Coreto](/maintainers/Coreto)

---

Top Contributors

[![gasher](https://avatars.githubusercontent.com/u/33718597?v=4)](https://github.com/gasher "gasher (3 commits)")[![balaianu](https://avatars.githubusercontent.com/u/5259461?v=4)](https://github.com/balaianu "balaianu (1 commits)")

### Embed Badge

![Health badge](/badges/coreto-coreto-rcs-sdk/health.svg)

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

###  Alternatives

[robicch/jquery-gantt

Twproject Gantt editor is a free online tool for creating and sharing Gantts

2.3k157.7k](/packages/robicch-jquery-gantt)[brickrouge/brickrouge

A toolkit to create HTML elements

301.8k6](/packages/brickrouge-brickrouge)

PHPackages © 2026

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