PHPackages                             ctexthuang/apple\_sdk - 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. [Payment Processing](/categories/payments)
4. /
5. ctexthuang/apple\_sdk

ActiveLibrary[Payment Processing](/categories/payments)

ctexthuang/apple\_sdk
=====================

苹果内购 sdk for php

v1.0.0(3mo ago)04MITPHPPHP &gt;=7.1

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/ctexthuang/package_php_apple_sdk)[ Packagist](https://packagist.org/packages/ctexthuang/apple_sdk)[ Docs](https://github.com/ctexthuang/package_php_apple_sdk)[ RSS](/packages/ctexthuang-apple-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

苹果内购 SDK for PHP !
==================

[](#苹果内购-sdk-for-php--)

### 主要新特性

[](#主要新特性)

- 简化使用方法
- 调用简单，统一原样返回
- 可执行单元测试

### 更新日志

[](#更新日志)

- 1.0.0 增加验证苹果内购凭据，支持沙盒模式

安装
--

[](#安装)

> 运行环境要求PHP7.1+。

```
$ composer require ctexthuang/apple_sdk
```

### 使用

[](#使用)

```
$app = new Verify();
//开启沙盒模式 true=沙盒 false=生产正式
$app->setSandBox(true);
$res = $app->doVerify('苹果凭据');
```

文档
--

[](#文档)

[苹果开发者官网](https://developer.apple.com/)[苹果开发者文档](https://developer.apple.com/cn/develop/)[通过 App Store 验证收据](https://developer.apple.com/cn/documentation/storekit/in-app_purchase/validating_receipts_with_the_app_store/)[verifyReceipt](https://developer.apple.com/documentation/appstorereceipts/verifyreceipt)[requestBody](https://developer.apple.com/documentation/appstorereceipts/requestbody)

问题
--

[](#问题)

Contributing
------------

[](#contributing)

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance86

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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

99d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd9e29ba99c32e51a6d73f46ac586f1bc2e1d322e370f54b88566cc0d6bb5b95?d=identicon)[ctexthuang](/maintainers/ctexthuang)

---

Top Contributors

[![ctexthuang](https://avatars.githubusercontent.com/u/24536224?v=4)](https://github.com/ctexthuang "ctexthuang (1 commits)")

---

Tags

Apple Payapple

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ctexthuang-apple-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ctexthuang-apple-sdk/health.svg)](https://phpackages.com/packages/ctexthuang-apple-sdk)
```

###  Alternatives

[mollie/laravel-cashier-mollie

Laravel Cashier provides an expressive, fluent interface to Mollie's subscription billing services.

172155.4k1](/packages/mollie-laravel-cashier-mollie)[yanlongli/app-store-server-api

PHP client for App Store Server API. Manage your customers’ App Store transactions from your server.The App Store Server API is a REST API that you call from your server to request and provide information about your customers' in-app purchases. The App Store signs the transaction and subscription renewal information that this API returns using the JSON Web Signature (JWS) specification.App Store Server API is independent of the app’s installation status on the customer’s devices. The App Store server returns information based on the customer’s in-app purchase history regardless of whether the customer installed, removed, or reinstalled the app on their devices.To request transaction and subscription status information with this API, provide any original transaction identifier that belongs to the customer. The transaction history API responds with a complete list of transactions, 20 at a time, starting with the oldest first. The subscription status API returns the status for all of the customer’s subscriptions, organized by their subscription group identifier.Use the Send Consumption Information endpoint to send information to the App Store when customers request a refund for a consumable in-app purchase, after you receive the CONSUMPTION\_REQUEST App Store server notification. Your data helps inform refund decisions.

2532.0k](/packages/yanlongli-app-store-server-api)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)

PHPackages © 2026

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