PHPackages                             cthulhu/ios-receipt-parser - 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. cthulhu/ios-receipt-parser

ActiveLibrary

cthulhu/ios-receipt-parser
==========================

Utility to parse Apple-issued PKCS#7 container with receipts

v1.0.0(5y ago)1486[1 issues](https://github.com/CthulhuDen/ios-receipt-parser/issues)MITPHPPHP &gt;= 7.3

Since Sep 1Pushed 4y ago2 watchersCompare

[ Source](https://github.com/CthulhuDen/ios-receipt-parser)[ Packagist](https://packagist.org/packages/cthulhu/ios-receipt-parser)[ RSS](/packages/cthulhu-ios-receipt-parser/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Apple StoreKit receipt parser for PHP
=====================================

[](#apple-storekit-receipt-parser-for-php)

This library can be used to parse Apple billing receipts in accordance with and without calling Apple servers.

This is required, in particular, when you use latest XCode features to test your billing flow: [https://developer.apple.com/documentation/xcode/setting\_up\_storekit\_testing\_in\_xcode](https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode), because receipts generated this way are signed by you local special-purpose certificate and cannot be validated via Apple's own servers.

In all other cases, you should strongly prefer to validate all receipts against Apple servers.

Installation
------------

[](#installation)

```
composer install cthulhu/ios-receipt-parser
```

Usage
-----

[](#usage)

Primary use case is to parse receipt generated by StoreKit for you locally, so you don't have to validate the signatures:

```
