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 2d 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 64% 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

2651d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a98c6344b4bb286e0031bd90f03614cffbc74d8d3fa27ce1704e41cb958c4c72?d=identicon)[JohnnyChenS](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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