Download the PHP package cccdl/apple_sdk without Composer

On this page you can find all versions of the php package cccdl/apple_sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apple_sdk

苹果内购 SDK for PHP !

重要提示:

verifyReceipt 端点已弃用。要在你的服务器上验证收据,请在服务器上执行在设备上验证收据 中的步骤。要在你的服务器上不使用收据验证 App 内购买项目,请调用 App Store Server API 获取顾客的 Apple 签名的交易和订阅信息,或者验证你的 App 获取的 AppTransaction 和 Transaction 签名的数据。你也可以从 App Store Server Notifications V2 获取同样的签名交易和订阅信息。 获取交易历史V1【苹果官网废弃说明】 通过 App Store 验证收据【苹果官网废弃说明】

苹果已经把v1版本废弃了,预计2-3年就会彻底要求迁移

主要新特性

更新日志

版本号 更新内容 备注 更新日期
1.0.0 增加验证苹果内购凭据,支持沙盒模式 -
2.0.0 增加《Get Transaction History》《获取交易历史消息》v2版本(直接跳过v1版本)
2. 新版本不支1.0.0旧版本凭据验证,如需使用请直接使用1.0.0版本
- 2024年8月9日
2.1.0 增加《Get Transaction Info》《获取交易信息》 - 2024年9月19日

安装

运行环境要求PHP7.1+。

使用教程

v1.0.0

v2.0.0

苹果内购流程图 【仅供参考】

复杂版本的流程图

注意:需要防挟持,因为由前端传入的订单号,如果苹果订单号泄漏,那么就会有人拿着你的订单号进行恶意验证,导致你的充值充值到别的账号里面 优点:可以切换账号后,依旧验证原订单,充值的金币只会跟点击充值的账号绑定,并发放,不需担心切换单号丢失的问题 缺点:开发复杂、切换手机依旧无法解决掉单问题

简单版本的流程图

注意:切换账号如未验证,则会验证成功,充值到别的账号上 优点:开发简单,验证简单 缺点:切换账号后,容易下发到别的账号上

文档

苹果开发者官网 苹果开发者文档 通过 App Store 验证收据 verifyReceipt requestBody

问题

提交 Issue,不符合指南的问题可能会立即关闭。

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

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

MIT


All versions of apple_sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
guzzlehttp/guzzle Version ^7.3
ext-json Version *
firebase/php-jwt Version ^6.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cccdl/apple_sdk contains the following files

Loading the files please wait ....