PHPackages                             incenteev/async-amazon-incentives - 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. incenteev/async-amazon-incentives

ActiveLibrary[API Development](/categories/api)

incenteev/async-amazon-incentives
=================================

SDK for the Amazon Incentives API based on the structure of the async-aws project

v1.1.1(1y ago)2154.3k↓82.6%3MITPHPPHP ^8.1

Since Jul 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Incenteev/async-amazon-incentives)[ Packagist](https://packagist.org/packages/incenteev/async-amazon-incentives)[ RSS](/packages/incenteev-async-amazon-incentives/feed)WikiDiscussions main Synced 3d ago

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

Async Amazon Incentives
=======================

[](#async-amazon-incentives)

This package provides an unofficial SDK for the [Amazon Incentives API](https://developer.amazon.com/docs/incentives-api/digital-gift-cards.html).

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org) to install the library:

```
$ composer require incenteev/async-amazon-incentives
```

Usage
-----

[](#usage)

```
use AsyncAws\Core\Configuration;
use Incenteev\AsyncAmazonIncentives\AmazonIncentivesClient;
use Incenteev\AsyncAmazonIncentives\Enum\CurrencyCode;
use Incenteev\AsyncAmazonIncentives\Exception\SystemTemporarilyUnavailableException;
use Incenteev\AsyncAmazonIncentives\Region;
use Incenteev\AsyncAmazonIncentives\ValueObject\MoneyAmount;

// Get your credentials in the Amazon Incentives portal
$accessKey = '';
$secretKey = '';
$partnerId = '';

// Choose the region corresponding to your partnership, with either the sandbox or production one.
$region = Region::EUROPE_AND_ASIA_SANDBOX;

$client = new AmazonIncentivesClient([
    Configuration::OPTION_ACCESS_KEY_ID => $accessKey,
    Configuration::OPTION_SECRET_ACCESS_KEY => $secretKey,
    Configuration::OPTION_REGION => $region,
]);

try {
    $result = $client->createGiftCard([
        'partnerId' => $partnerId,
        'creationRequestId' => '', // Create the proper request id
        'value' => new MoneyAmount(['amount' => 10, 'currencyCode' => CurrencyCode::EUR]),
    ]);

    $code = $result->getGcClaimCode();
} catch (SystemTemporarilyUnavailableException $e) {
    // TODO handle temporary failures according to the Amazon Incentives best practices
}
```

> Note: due to the async nature of the project, the exception is not actually thrown by the call to `createGiftCard`but when the Result object gets resolved.

License
-------

[](#license)

This package is under the [MIT license](LICENSE).

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [GitHub issue tracker](https://github.com/Incenteev/async-amazon-incentives/issues).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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 ~230 days

Total

3

Last Release

628d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75c5d927b0434111db9720dd78af8c83385cf28bb9aeafd031ba8cb0c4ffc558?d=identicon)[Stof](/maintainers/Stof)

---

Top Contributors

[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (33 commits)")[![77web](https://avatars.githubusercontent.com/u/296615?v=4)](https://github.com/77web "77web (1 commits)")

---

Tags

hacktoberfestamazongiftcardAmazonGiftCodeAGCODIncentives APIAmazon Incentives API

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/incenteev-async-amazon-incentives/health.svg)

```
[![Health](https://phpackages.com/badges/incenteev-async-amazon-incentives/health.svg)](https://phpackages.com/packages/incenteev-async-amazon-incentives)
```

###  Alternatives

[kamerk22/amazongiftcode

Laravel Package for Amazon Gift Codes.

46155.3k](/packages/kamerk22-amazongiftcode)[async-aws/lambda

Lambda client, part of the AWS SDK provided by AsyncAws.

194.6M16](/packages/async-aws-lambda)[async-aws/ses

SES client, part of the AWS SDK provided by AsyncAws.

5112.0M23](/packages/async-aws-ses)[thewirecutter/paapi5-php-sdk

Amazon Creators API PHP SDK

691.8M7](/packages/thewirecutter-paapi5-php-sdk)[m2epro/magento2-extension

M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.

71676.4k](/packages/m2epro-magento2-extension)

PHPackages © 2026

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