Download the PHP package nullform/app-store-server-api-client without Composer

On this page you can find all versions of the php package nullform/app-store-server-api-client. 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 app-store-server-api-client

Apple App Store Server API PHP Client

Unoffical PHP client for App Store Server API and App Store Server Notifications.

Installation

Requirements

Composer

Usage

Create an API Key instance:

Create a Bundle instance(s):

Create an API client instance:

Use client for one or multiple bundles:

You can manually call the App Store Server API via universal callApi() method:

AppStoreServerApiClient methods

Get Transaction History

Get a customer’s in-app purchase transaction history for your app.

https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history

Get All Transactions History

Recursively get FULL transaction history.

Get Transaction Info

Get information about a single transaction for your app.

https://developer.apple.com/documentation/appstoreserverapi/get_transaction_info

Get All Subscription Statuses

Get the statuses for all of a customer’s subscriptions in your app.

https://developer.apple.com/documentation/appstoreserverapi/get_all_subscription_statuses

Send Consumption Information

Send consumption information about a consumable in-app purchase to the App Store after your server receives a consumption request notification.

https://developer.apple.com/documentation/appstoreserverapi/send_consumption_information

Look Up Order Id

Get a customer’s in-app purchases from a receipt using the order ID.

https://developer.apple.com/documentation/appstoreserverapi/look_up_order_id

Get Refund History

Get a list of all refunded in-app purchases in your app for a customer.

https://developer.apple.com/documentation/appstoreserverapi/get_refund_history

Extend a Subscription Renewal Date

Extend the renewal date of a customer’s active subscription using the original transaction identifier.

https://developer.apple.com/documentation/appstoreserverapi/extend_a_subscription_renewal_date

Extend Subscription Renewal Dates for All Active Subscribers

Uses a subscription’s product identifier to extend the renewal date for all of its eligible active subscribers.

https://developer.apple.com/documentation/appstoreserverapi/extend_subscription_renewal_dates_for_all_active_subscribers

Get Status of Subscription Renewal Date Extensions

Checks whether a renewal date extension request completed, and provides the final count of successful or failed extensions.

https://developer.apple.com/documentation/appstoreserverapi/get_status_of_subscription_renewal_date_extensions

Request a Test Notification

Ask App Store Server Notifications to send a test notification to your server.

https://developer.apple.com/documentation/appstoreserverapi/request_a_test_notification

Get Test Notification Status

Check the status of the test App Store server notification sent to your server.

https://developer.apple.com/documentation/appstoreserverapi/get_test_notification_status

Get Notification History

Get a list of notifications that the App Store server attempted to send to your server.

https://developer.apple.com/documentation/appstoreserverapi/get_notification_history

Set App Store Bundle

Set App Store bundle for authorize your API calls.

Set Token TTL

Set new value for JWT TTL (in seconds). Maximum value: 3600.

https://developer.apple.com/documentation/appstoreserverapi/generating_tokens_for_api_requests

Set HTTP Client Request Timeout

Set new value for HTTP client request timeout (in seconds).

Call API

Custom call App Store Server API with your previously passed credentials.

Receiving App Store Server Notifications V2

To receive App Store Server Notifications use AppStoreServerNotificationsClient:

Note that AppStoreServerNotificationsClient only for version 2 notifications.

Tests

For unit tests you must create credentials.php and private-key.p8 with the key and sandbox credentials from App Store Connect (see tests/credentials.example.php).


All versions of app-store-server-api-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2||^8.0
ext-json Version *
symfony/uid Version ^5.4
guzzlehttp/guzzle Version ^7.5
firebase/php-jwt Version ^6.0
nullform/http-status Version ^1.1
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 nullform/app-store-server-api-client contains the following files

Loading the files please wait ....