PHPackages                             calibr/ms-receipt-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. calibr/ms-receipt-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

calibr/ms-receipt-validator
===========================

Microsoft Store Receipt Validator

1.2.1(9y ago)19.6kPHP

Since Dec 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/calibr/ms-receipt-validator)[ Packagist](https://packagist.org/packages/calibr/ms-receipt-validator)[ RSS](/packages/calibr-ms-receipt-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Why?
====

[](#why)

This library was created to easily validate Microsoft Store purchase receipts on the server side.

Installation
============

[](#installation)

`composer require calibr/ms-receipt-validator`

Usage
=====

[](#usage)

Assume that client passes receipt to the server side and we receive it in the variable `$_POST["receiptXML"]`, validation of the receipt will look like:

```
