PHPackages                             johnnychens/amazon.gcod - 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. johnnychens/amazon.gcod

ActiveLibrary[API Development](/categories/api)

johnnychens/amazon.gcod
=======================

This class is for making a request to Amazon GiftCode on Demand service API.

v1.1.1(7y ago)1831MITPHP

Since Jun 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/JohnnyChenS/amazon.gcod)[ Packagist](https://packagist.org/packages/johnnychens/amazon.gcod)[ RSS](/packages/johnnychens-amazongcod/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

\#AGCOD means Amazon Gift Code On Demand.

Install:

```
composer require johnnychens/amazon.gcod

```

Usage:

```
//initiate the \Amazon\Config\Account class with with your own settings:
$partnerId = 'YourCompanyID';
$accessKey = 'findfromYourAwsAccountManagementPage';
$secretKey = 'findYourAwsAccountManagementPage';

$account = new \Amazon\Config\Account($partnerId, $accessKey, $secretKey);

//initiate the \Amazon\Config\Region class:
$region = new \Amazon\Config\Region(\Amazon\Config\Region::US, TRUE);

//Amazon Service API should instantiate like this:
$gcService = new GCServiceWrapper($account, $region);

$giftcard = $gcService->createGiftCode(3);//request for a USD$3 giftcard code

$gcService->cancelGiftCode($giftcard['gcId']); //cancel the card
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 97% 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 ~125 days

Total

3

Last Release

2698d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1654115?v=4)[强尼陈](/maintainers/JohnnyChenS)[@JohnnyChenS](https://github.com/JohnnyChenS)

---

Top Contributors

[![JohnnyChenS](https://avatars.githubusercontent.com/u/1654115?v=4)](https://github.com/JohnnyChenS "JohnnyChenS (32 commits)")[![georgringer](https://avatars.githubusercontent.com/u/1905663?v=4)](https://github.com/georgringer "georgringer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/johnnychens-amazongcod/health.svg)

```
[![Health](https://phpackages.com/badges/johnnychens-amazongcod/health.svg)](https://phpackages.com/packages/johnnychens-amazongcod)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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