PHPackages                             dynata/rex-sdk-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. dynata/rex-sdk-php

AbandonedArchivedLibrary[API Development](/categories/api)

dynata/rex-sdk-php
==================

1.0.2(3y ago)013MITPHPPHP &gt;=7.4

Since May 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dynata/rex-sdk-php)[ Packagist](https://packagist.org/packages/dynata/rex-sdk-php)[ RSS](/packages/dynata-rex-sdk-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (7)Versions (6)Used By (0)

Warning

DEPRECATED
----------

[](#deprecated)

This repository is no longer supported.

rex-sdk-php
===========

[](#rex-sdk-php)

Package for building and interacting with the Dynata Respondent Exchange (REX)

Quickstart:
-----------

[](#quickstart)

Note: if you do not have an "account\_id" null can be used
----------------------------------------------------------

[](#note-if-you-do-not-have-an-account_id-null-can-be-used)

### ***Opportunity Registry***

[](#opportunity-registry)

### Instantiate a Registry Client

[](#instantiate-a-registry-client)

```
use Dynata\Rex\Core\Security\BasicCredentialsProvider;
use Dynata\Rex\Core\Security\StringSigner;
use Dynata\Rex\Registry\Registry;

$interval = \DateInterval::createFromDateString('1 day');
$creds_provider = new BasicCredentialsProvider("REX_ACCESS_KEY", "REX_SECRET_KEY");
$string_signer = new StringSigner($creds_provider, $interval);
$registy = new Registry("REX_REGISTRY_BASE_URL", $string_signer);
```

##### List Opportunity Notifications

[](#list-opportunity-notifications)

```
$shardConfig = new ShardConfig(1, 1);
$notification_payload = new ReceiveNotificationsInput(1, $shardConfig, "account_id");
$registry->recieveNotifications($notification_payload);
```

##### Acknowledge Notifications

[](#acknowledge-notifications)

```
$ack_notification_payload = new AckNotificationsInput("account_id", [1, 2 , 3]);
$registry->ackNotifications($ack_notification_payload);
```

##### Get Opportunity

[](#get-opportunity)

```
$registry->getOpportunity(['id'=> 1]);
```

##### List Project Opportunities

[](#list-project-opportunities)

```
$list_project_opportunities_payload = new ListProjectOpportunitiesInput("account_id", 1);
$registry->listProjectOpportunities($list_project_opportunities_payload);
```

##### Download Collection

[](#download-collection)

```
$download_collection_payload = new DownloadCollectionInput("account_id", 1);
$registry->downloadCollection($list_project_opportunities_payload);
```

### ***Respondent Gateway***

[](#respondent-gateway)

### Instantiate a Gateway Client

[](#instantiate-a-gateway-client)

```
use Dynata\Rex\Core\Security\BasicCredentialsProvider;
use Dynata\Rex\Core\Security\StringSigner;

$interval = \DateInterval::createFromDateString('1 day');
$creds_provider = new BasicCredentialsProvider("REX_ACCESS_KEY", "REX_SECRET_KEY");
$string_signer = new StringSigner($creds_provider, $interval);
$gateway = new Gateway("REX_BASE_URL", $string_signer);
```

##### Create a context

[](#create-a-context)

```
$context = new CreateContextInput("unique_context_id", "account_id", "expiration",
[
        "ctx" => "a987dsglh34t435jkhsdg98u",
        "gender" => "male",
        "postal_code" => "60081",
        "birth_date" => "1959-10-05",
        "country" => "US"
    ]
);
$gateway->createContext($context);
```

##### Get a context

[](#get-a-context)

```
$context = new GetContextInput("unique_context_id", "account_id");
$gatway->getContext($context);
```

##### Expire a context

[](#expire-a-context)

```
$context = new ExpireContextInput("unique_context_id", "account_id");
$gatway->expireContext($context);
```

##### Create or Update a Respondent

[](#create-or-update-a-respondent)

```
$respondent = new PutRespondentInput(
    "unique_respondent_id",
    "en",
    "US",
    "female",
    "1999-09-09",
    "60081"
);
$gatway->putRespondent($respondent);
```

##### Create or Update a Respondent Answers

[](#create-or-update-a-respondent-answers)

```
$respondent = new PutRespondentAnwsersInput(
    "unique_respondent_id",
    "US",
    [
         [
            "id" => -9223372036854776000,
            "answers" => [
                -9223372036854776000
            ]
        ]
    ]
);
$gatway->putRespondentAnswers($respondent);
```

##### List Attributes

[](#list-attributes)

```
$list_attributes = new ListAttributesInput();
$list_attributes->page_size = 1;
$gateway->listAttributes($list_attributes);
```

##### Get Attribute Info

[](#get-attribute-info)

```
$get_attribute_info = new GetAttributeInfoInput(1);
$gateway->getAttributeInfo($get_attribute_info);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.8% 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 ~51 days

Total

3

Last Release

1405d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/189b24d49d769bc98a5e0267a17c20a1fb3cbbb12616f7e7d377b25f4aeace1b?d=identicon)[gino.trombetti.dynata](/maintainers/gino.trombetti.dynata)

---

Top Contributors

[![ginotrombetti](https://avatars.githubusercontent.com/u/52046563?v=4)](https://github.com/ginotrombetti "ginotrombetti (29 commits)")[![IskoAnton](https://avatars.githubusercontent.com/u/19641321?v=4)](https://github.com/IskoAnton "IskoAnton (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![npfund](https://avatars.githubusercontent.com/u/2091351?v=4)](https://github.com/npfund "npfund (7 commits)")[![andynataco](https://avatars.githubusercontent.com/u/52574829?v=4)](https://github.com/andynataco "andynataco (1 commits)")[![TheHatchetteMan](https://avatars.githubusercontent.com/u/42844977?v=4)](https://github.com/TheHatchetteMan "TheHatchetteMan (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12310.5M135](/packages/web-auth-webauthn-lib)

PHPackages © 2026

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