PHPackages                             xpayr/xpayr-php - 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. xpayr/xpayr-php

ActiveLibrary

xpayr/xpayr-php
===============

Official PHP SDK for the XPayr Merchant API.

v0.1.0(1mo ago)02↓66.7%[1 PRs](https://github.com/xpayrcom/xpayr-php-sdk/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jul 17Pushed 1mo agoCompare

[ Source](https://github.com/xpayrcom/xpayr-php-sdk)[ Packagist](https://packagist.org/packages/xpayr/xpayr-php)[ Docs](https://xpayr.com/developers)[ Fund](https://xpayr.com)[ RSS](/packages/xpayr-xpayr-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

XPayr PHP SDK
=============

[](#xpayr-php-sdk)

[![CI](https://github.com/xpayrcom/xpayr-php-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/xpayrcom/xpayr-php-sdk/actions/workflows/ci.yml)[![License: MIT](https://camo.githubusercontent.com/f9c54f99b2cb58f411520335b3882d1516f03c0e34bcdf371f3406b97ac84e91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d3066373636652e737667)](LICENSE)

Official PHP SDK for XPayr payment sessions, merchant operations, webhook verification, and server-side crypto checkout integrations.

> **Status:** Public beta · v0.1.0

Purpose
-------

[](#purpose)

A PHP 8.1+ client for XPayr Merchant API v1 with cURL transport, structured exceptions, and secure webhook verification.

Included
--------

[](#included)

- Payment, merchant, network, and webhook API methods
- PSR-4 package layout and Composer metadata
- Constant-time HMAC-SHA256 webhook verification

Quick start
-----------

[](#quick-start)

```
composer install
composer test
```

Install the published package:

```
composer require xpayr/xpayr-php:^0.1
```

For repository development, run `composer install`, `composer lint`, and `composer test`.

Compatibility
-------------

[](#compatibility)

- Runtime requirement: PHP 8.1+ with `ext-curl` and `ext-json`
- Verified in CI on PHP 8.1, 8.3, and 8.4
- Distributed as a PSR-4 Composer library under `xpayr/xpayr-php`

Usage
-----

[](#usage)

```
