alldigitalrewards / rewardstack
RewardStack SDK
Package info
github.com/alldigitalrewards/rewardstack-sdk
pkg:composer/alldigitalrewards/rewardstack
5.7.0
2026-06-09 18:43 UTC
Requires
- php: ^8.0
- ext-json: *
- alldigitalrewards/country-mapper: ^1
- alldigitalrewards/language-mapper: ^1|^2
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^7.0|^8|^9.0
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2026-06-09 18:45:22 UTC
README
This is an ADR RewardStack SDK
Install
Via Composer
$ composer require alldigitalrewards/rewardstack
Usage
Bootstrap
<?php require __DIR__ . '/vendor/autoload.php'; $credentials = new \AllDigitalRewards\RewardStack\Auth\Credentials( 'username', 'password' ); $uri = new \GuzzleHttp\Psr7\Uri('https://admin.qa.alldigitalrewards.com'); $httpClient = new \GuzzleHttp\Client(); $authProxy = new \AllDigitalRewards\RewardStack\Auth\AuthProxy($credentials, $uri, $httpClient); $client = new \AllDigitalRewards\RewardStack\Client($authProxy);
Get a Participant
<?php $participantRequest = new \AllDigitalRewards\RewardStack\Request\ParticipantRequest('TESTPARTICIPANT1'); $participant = $client->request($participantRequest);
Testing
$ composer test