PHPackages                             lscuderi/tpay - 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. [Payment Processing](/categories/payments)
4. /
5. lscuderi/tpay

ActiveLibrary[Payment Processing](/categories/payments)

lscuderi/tpay
=============

T-Pay PHPLib

020[1 PRs](https://github.com/lscuderi/tpay-php/pulls)PHPCI passing

Since Oct 9Pushed 7mo agoCompare

[ Source](https://github.com/lscuderi/tpay-php)[ Packagist](https://packagist.org/packages/lscuderi/tpay)[ RSS](/packages/lscuderi-tpay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

payrexx-php SDK
===============

[](#payrexx-php-sdk)

Overview
--------

[](#overview)

This is the official PHP client library for the Payrexx API, supporting API version **1.0 - 1.11**. It enables easy integration with Payrexx payment services from your PHP applications.

---

Versioning
----------

[](#versioning)

- This client library targets **Payrexx API version 1.11**.
- Make sure to use the compatible library version to avoid compatibility issues.
- The current stable release is **2.0.0**, which requires PHP 8.0 or higher.

---

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

[](#requirements)

- **PHP version:** 8.0 or higher (recommended from version 2.0.0 onwards)
- **PHP modules:** cURL extension enabled

---

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

[](#installation)

### Using Composer (recommended)

[](#using-composer-recommended)

If you do not have Composer installed, please visit  for installation instructions.

Add Payrexx SDK to your project via Composer:

```
composer require payrexx/payrexx
```

Alternatively, add this to your composer.json and run composer update:

- For the latest development version: ```
    {
      "require": {
        "payrexx/payrexx": "dev-master"
      }
    }
    ```
- For the stable version 2.0.0: ```
    {
      "require": {
        "payrexx/payrexx": "2.0.0"
      }
    }
    ```

This will install the SDK and generate the necessary autoload files.

---

Quick Start
-----------

[](#quick-start)

1. Instantiate the Payrexx client

    ```
    $instance = 'your-instance-name'; // e.g., 'demo' for https://demo.payrexx.com
    $apiSecret = 'your-api-secret';   // Find this in your Payrexx instance admin panel

    $payrexx = new \Payrexx\Payrexx($instance, $apiSecret);
    ```
2. Create a model object For example, to work with subscriptions:

    ```
    use Payrexx\Models\Request\Subscription;

    $subscription = new Subscription();
    $subscription->setId(1);
    ```
3. Call API methods

    For example, to cancel a subscription:

    ```
    try {
        $response = $payrexx->cancel($subscription);
        $subscriptionId = $response->getId();
    } catch (\Payrexx\PayrexxException $e) {
        // Handle errors
        echo 'Error Code: ' . $e->getCode() . PHP_EOL;
        echo 'Error Message: ' . $e->getMessage() . PHP_EOL;
    }
    ```

### Specifying the API Version

[](#specifying-the-api-version)

The Payrexx PHP SDK constructor supports an optional `$version` parameter that allows you to specify the API version you want to use.

```
$instance = 'your-instance-name';
$apiSecret = 'your-api-secret';

// Specify the API version explicitly (e.g., "1.8")
$apiVersion = '1.8';

$payrexx = new \Payrexx\Payrexx(
    $instance,
    $apiSecret,
    \Payrexx\Communicator::DEFAULT_COMMUNICATION_HANDLER,
    '',           // leave empty if not using a custom API base domain
    $apiVersion   // specify the API version here
);
```

---

Using Platform Accounts (Custom API Base URL)
---------------------------------------------

[](#using-platform-accounts-custom-api-base-url)

If you are working with Platform accounts, you must specify a custom API base domain when instantiating the client.

```
use Payrexx\Communicator;

$apiBaseDomain = 'your.domain.com';

$payrexx = new \Payrexx\Payrexx(
    $instance,
    $apiSecret,
    Communicator::DEFAULT_COMMUNICATION_HANDLER,
    $apiBaseDomain
);
```

Notes:

- `$instance` is the subdomain part of your unique domain.
- For example, if your login domain is client.platform.yourcompany.com, then:
    - `$instance = 'client'`
    - `$apiBaseDomain = 'platform.yourcompany.com'`

---

Documentation and Support
-------------------------

[](#documentation-and-support)

For detailed information about the API endpoints and data models, please refer to the official Payrexx REST API documentation:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance45

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4aeac74806a23bcd36aa853994233789c6c5670b398d45cb2ed3b743097e30d?d=identicon)[lscuderi](/maintainers/lscuderi)

---

Top Contributors

[![ukramer](https://avatars.githubusercontent.com/u/809922?v=4)](https://github.com/ukramer "ukramer (33 commits)")[![michaelraess](https://avatars.githubusercontent.com/u/8957580?v=4)](https://github.com/michaelraess "michaelraess (32 commits)")[![ruban-kumar](https://avatars.githubusercontent.com/u/78416580?v=4)](https://github.com/ruban-kumar "ruban-kumar (9 commits)")[![vekkon](https://avatars.githubusercontent.com/u/26244609?v=4)](https://github.com/vekkon "vekkon (8 commits)")[![ruban-ss4u](https://avatars.githubusercontent.com/u/103740642?v=4)](https://github.com/ruban-ss4u "ruban-ss4u (6 commits)")[![lscuderi](https://avatars.githubusercontent.com/u/1070416?v=4)](https://github.com/lscuderi "lscuderi (6 commits)")[![LLimani](https://avatars.githubusercontent.com/u/97031247?v=4)](https://github.com/LLimani "LLimani (5 commits)")[![markusliechti](https://avatars.githubusercontent.com/u/96245342?v=4)](https://github.com/markusliechti "markusliechti (5 commits)")[![mathis-hermann](https://avatars.githubusercontent.com/u/168133948?v=4)](https://github.com/mathis-hermann "mathis-hermann (4 commits)")[![binhvm2022](https://avatars.githubusercontent.com/u/104546858?v=4)](https://github.com/binhvm2022 "binhvm2022 (2 commits)")[![Kaapiii](https://avatars.githubusercontent.com/u/995643?v=4)](https://github.com/Kaapiii "Kaapiii (2 commits)")[![lucaweber2](https://avatars.githubusercontent.com/u/111440709?v=4)](https://github.com/lucaweber2 "lucaweber2 (2 commits)")[![mallsbill](https://avatars.githubusercontent.com/u/8493200?v=4)](https://github.com/mallsbill "mallsbill (2 commits)")[![Remo](https://avatars.githubusercontent.com/u/129864?v=4)](https://github.com/Remo "Remo (2 commits)")[![duyphipayrexx](https://avatars.githubusercontent.com/u/138740830?v=4)](https://github.com/duyphipayrexx "duyphipayrexx (1 commits)")[![lars-gertsch](https://avatars.githubusercontent.com/u/53812165?v=4)](https://github.com/lars-gertsch "lars-gertsch (1 commits)")[![JulienRAVIA](https://avatars.githubusercontent.com/u/8202241?v=4)](https://github.com/JulienRAVIA "JulienRAVIA (1 commits)")[![steljo367](https://avatars.githubusercontent.com/u/58253340?v=4)](https://github.com/steljo367 "steljo367 (1 commits)")[![syeo66](https://avatars.githubusercontent.com/u/1178021?v=4)](https://github.com/syeo66 "syeo66 (1 commits)")[![jdluca22](https://avatars.githubusercontent.com/u/97027378?v=4)](https://github.com/jdluca22 "jdluca22 (1 commits)")

### Embed Badge

![Health badge](/badges/lscuderi-tpay/health.svg)

```
[![Health](https://phpackages.com/badges/lscuderi-tpay/health.svg)](https://phpackages.com/packages/lscuderi-tpay)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
