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(5mo ago)04MITPHPPHP &gt;=7.1

Since Jan 30Pushed 5mo 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 today

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

29

—

LowBetter than 57% of packages

Maintenance73

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

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

155d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24536224?v=4)[ctexthuang](/maintainers/ctexthuang)[@ctexthuang](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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