PHPackages                             kesar/googlewalletdigitalgoods - 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. kesar/googlewalletdigitalgoods

ActiveLibrary[API Development](/categories/api)

kesar/googlewalletdigitalgoods
==============================

GoogleWalletDigitalGoods is a PHP library that helps you to use google wallet.

061

Since Mar 14Pushed 12y ago1 watchersCompare

[ Source](https://github.com/kesar/GoogleWalletDigitalGoods)[ Packagist](https://packagist.org/packages/kesar/googlewalletdigitalgoods)[ RSS](/packages/kesar-googlewalletdigitalgoods/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

GoogleWalletDigitalGoods
========================

[](#googlewalletdigitalgoods)

A PHP library for interacting with [Google Wallet for Digital Goods](https://developers.google.com/wallet/digital/) .

Composer Installation
---------------------

[](#composer-installation)

GoogleWalletDigitalGoods can be installed with Composer (). Add the following to your composer.json file. Composer will handle the autoloading.

```
{
    "require": {
        "kesar/googlewalletdigitalgoods": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
use \GoogleWalletDigitalGoods\SellerInfo;
use \GoogleWalletDigitalGoods\Payload;
use \GoogleWalletDigitalGoods\JWT;

$payload = new Payload();
$payload->setIssuedAt(time());
$payload->setExpiration(time() + 3600);
$payload->addProperty("name", "Piece of Cake");
$payload->addProperty(
    "description",
    "Virtual chocolate cake to fill your virtual tummy"
);
$payload->addProperty("price", "10.50");
$payload->addProperty("currencyCode", "USD");
$payload->addProperty(
    "sellerData",
    "user_id:1224245,offer_code:3098576987,affiliate:aksdfbovu9j"
);

// Creating payload of the product.
$Token = $payload->createPayload(SellerInfo::$issuerId);

// Encoding payload into JWT format.
$jwtToken = JWT::encode($Token, SellerInfo::$secretKey);
```

Testing
-------

[](#testing)

To test the library itself, run the PHPUnit tests:

```
phpunit --configuration phpunit.xml.dist

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/257deab5e740bd7c0f3daf9d3edaa316e51149d51fcf7520d1faf084e9d1826a?d=identicon)[kesar](/maintainers/kesar)

### Embed Badge

![Health badge](/badges/kesar-googlewalletdigitalgoods/health.svg)

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

###  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)
