PHPackages                             sn01615/google-iap-php - 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. [Security](/categories/security)
4. /
5. sn01615/google-iap-php

ActiveLibrary[Security](/categories/security)

sn01615/google-iap-php
======================

Google iap verify

v1.0(6y ago)2781MITPHP

Since Jun 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sn01615/google-iap-php)[ Packagist](https://packagist.org/packages/sn01615/google-iap-php)[ RSS](/packages/sn01615-google-iap-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

google-iap-php
==============

[](#google-iap-php)

Google支付验证

install
-------

[](#install)

```
composer require sn01615/google-iap-php
```

use
---

[](#use)

```
use sn01615\iap\google\Verify;

include "../vendor/autoload.php";

$cc = new Verify();

# 通过setPublicKey设置public key，然后输入data和sign，返回验证结果
$vv = $cc->setPublicKey('key')->verify('data', 'signature');

# Returns 1 if the signature is correct, 0 if it is incorrect, and -1 on error.
# 如果$vv 等于1代表成功 0 代表失败 -1 表示错误
var_dump($vv);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fd6cb8950d77fdebcef7c1cd1eac849e5610deddf19aa539f76b371ccaee152?d=identicon)[sn01615](/maintainers/sn01615)

---

Top Contributors

[![sn01615](https://avatars.githubusercontent.com/u/7794149?v=4)](https://github.com/sn01615 "sn01615 (3 commits)")

### Embed Badge

![Health badge](/badges/sn01615-google-iap-php/health.svg)

```
[![Health](https://phpackages.com/badges/sn01615-google-iap-php/health.svg)](https://phpackages.com/packages/sn01615-google-iap-php)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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