abraovic/ios-receipt-validator
Composer 安装命令:
composer require abraovic/ios-receipt-validator
包简介
Validate iOS receipt by PHP
README 文档
README
Installation
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:
composer require abraovic/ios-receipt-validator
Examples
<?php require 'vendor/autoload.php'; use abraovic\iOSReceiptValidator\Validate; use abraovic\iOSReceiptValidator\Exception\iOSReceiptValidatorException; try { $receipt = 'put-your-receipt-here'; $sharedSecret = 'put-your-secret-here-if-any'; // for sandbox mode Validate::$dev = true; $validate = new Validate($receipt, $sharedSecret); $response = $validate->execute(); // returns Response object } catch (iOSReceiptValidatorException $e) { echo 'Caught exception: ' . $e->getMessage() . "\n"; }
Available methods for Response object
$response->getStatus(); $response->getReceipt(); // returns Receipe object $response->getLatestReceipt(); $response->getLatestReceiptInfo(); // returns Receipe object
Available methods for Receipt object
$receipt->getBundleId(); $receipt->getApplicationVersion(); $receipt->getInApp(); $receipt->getOriginalApplicationVersion(); $receipt->getCreationDate(); $receipt->getOriginalPurchaseDate();
Contributing
Contributions are welcome! Please read CONTRIBUTING for details.
Copyright and license
The abraovic/ios-receipt-validator library is copyright © Ante Braovic and licensed for use under the Apache2 License.
abraovic/ios-receipt-validator 适用场景与选型建议
abraovic/ios-receipt-validator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16.05k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2016 年 05 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「apple」 「ios」 「receipt」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 abraovic/ios-receipt-validator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abraovic/ios-receipt-validator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 abraovic/ios-receipt-validator 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Generate Apple Passbooks from your Symfony application
PHP framework for easy interaction with Apple's Push Notification Service.
A simple library to decode and parse Apple Sign In client tokens.
Use OpenAI to extract structured receipt and invoice data from Text, Html, Images and PDFs.
Firebase cloud messaging http v1 php
Apple Push Notification & Feedback Provider
统计信息
- 总下载量: 16.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2016-05-09