PHPackages                             busuu/ios-receipts-api - 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. busuu/ios-receipts-api

AbandonedArchivedProject

busuu/ios-receipts-api
======================

1.2.9(5y ago)1259.5k↓39.3%9[1 PRs](https://github.com/Busuu/ios-receipts-api/pulls)MITPHPPHP &gt;=5.5

Since Aug 30Pushed 2y ago22 watchersCompare

[ Source](https://github.com/Busuu/ios-receipts-api)[ Packagist](https://packagist.org/packages/busuu/ios-receipts-api)[ RSS](/packages/busuu-ios-receipts-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (37)Used By (0)

PHP IOS Receipt validation library
==================================

[](#php-ios-receipt-validation-library)

A library to get information on auto-renewing subscriptions from the App Store receipts API, as described in the [IOS documentation](https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW1).

This is useful for:

- maintaining on your server an up-to-date database of your IOS users' auto-renewing subscriptions
- giving cross-platform access to users based on their IOS purchases
- knowing the type of plans a user has subscribed to, when is the plan expiration date, has the user requested a cancellation of the subscription

To retrieve information about a user's purchases from the App store, a receipt for this user must be sent to the App store. This receipt is stored as a file on the user's device. This receipt must then be sent from the IOS device to your server and stored by you, so that it can be used to retrieve the user's purchases afterward.

Features
--------

[](#features)

- Abstracts the complexity of interacting with IOS receipts
- Extensively unit tested and used in production at Busuu, a language learning platform with 60M users
- Follows PSR-4 conventions and coding standard: autoload friendly

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5
- [Guzzle](https://github.com/guzzle/guzzle) library,
- (optional) PHPUnit to run tests.

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

[](#installation)

We recommend using composer to install this library.

Run this commands to install composer if you don't already have it:

```
$ curl -sS https://getcomposer.org/installer | php
```

Then install this library with:

```
$ php composer.phar require busuu/ios-receipts-api
```

Or edit `composer.json` and add:

```
{
    "require": {
        "busuu/ios-receipts-api": "~1.0"
    }
}
```

Basic usage
-----------

[](#basic-usage)

```
