PHPackages                             ttimot24/teya-payment-client - 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. ttimot24/teya-payment-client

ActiveLibrary[Payment Processing](/categories/payments)

ttimot24/teya-payment-client
============================

PHP Teya Payment Client Library

v0.1.0(2mo ago)1268↓91.7%1MITPHPCI failing

Since Mar 20Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ttimot24/teya-payment-client)[ Packagist](https://packagist.org/packages/ttimot24/teya-payment-client)[ RSS](/packages/ttimot24-teya-payment-client/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (8)Versions (14)Used By (0)

[![teya logo](https://camo.githubusercontent.com/3b1a69eff3c640812ac6f88e066eb1bd45fd8543e944aeb97fa6ade5cb329573/68747470733a2f2f68656c7063656e7465722e746579612e636f6d2f68632f7468656d696e675f6173736574732f30314a3956423438544245305947484631565750375236323636)](https://camo.githubusercontent.com/3b1a69eff3c640812ac6f88e066eb1bd45fd8543e944aeb97fa6ade5cb329573/68747470733a2f2f68656c7063656e7465722e746579612e636f6d2f68632f7468656d696e675f6173736574732f30314a3956423438544245305947484631565750375236323636)

Teya Payment PHP Client Library
===============================

[](#teya-payment-php-client-library)

Teya PHP Client Library is a PHP package designed to interact with the Teya API, enabling seamless integration of Teya's services into PHP applications. It provides a structured and easy-to-use interface for making API requests, handling authentication, and managing data exchanges. The library simplifies complex API interactions by offering pre-built methods for common operations, ensuring developers can efficiently integrate Teya's features with minimal effort. Ideal for businesses and developers looking to incorporate Teya's payment and transactional services into their PHP-based systems.

### Install

[](#install)

```
composer require redwello/teya-payment-client
```

### RPG Payment Gateway

[](#rpg-payment-gateway)

[Official documentation](https://docs.borgun.is/paymentgateways/bapi/)

```
$client = new Redwello\TeyaPayment\TeyaPaymentGatewayClient([
    'PrivateKey' => '856293_pr0lxnW8PG1SeCwVJ3WPH0lXCeU0/sYLtX'
    ]);

$client->payment([
        'Amount' => 100,
        'Currency' => 352,
        'OrderId' => 'ORDER1230001',
        'PaymentMethod' => [
            'PaymentType' => 'Card',
            'PAN' => '4176669999000104',
            'ExpYear' => 2031,
            'ExpMonth' => 12
        ]
    ]);
```

### SecurePay

[](#securepay)

[Official documentation](https://docs.borgun.is/hostedpayments/securepay/#introduction)

```
        $client = new Redwello\TeyaPayment\TeyaSecurePayClient([
            'MerchantId' => '9256684',
            'PaymentGatewayId' => 7,
            'SecretKey' => 'cdedfbb6ecab4a4994ac880144dd92dc',
            'RedirectSuccess' => '/SecurePay/SuccessPage.aspx',
            'RedirectSuccessServer' => 'SUCCESS_SERVER',
            "Currency" => "HUF"
        ]);

        $this->client->addItems([
            new \Redwello\TeyaPayment\Model\TeyaItem('Test Item', 1, 10000)
        ]);

        //prepare transaction and redirect user
        $response = $this->client->start([
            "reference" => "TEST00000001",
        ]);

        header('Location: '.$response['paymentUrl']);

        //or a shortcut:
        $this->client->open([
            "reference" => "TEST00000001",
        ]);
```

### Logging

[](#logging)

```
 $logger = new Logger('TeyaSecurePayClient');
 $logger->pushHandler(new StreamHandler('teya_secure_pay_client.log'), \Monolog\Level::Debug);

 $client = new Redwello\TeyaPayment\TeyaPaymentGatewayClient([
            'PrivateKey' => '856293_pr0lxnW8PG1SeCwVJ3WPH0lXCeU0/sYLtX'
            'logger' => $logger
        ]);
```

### SecurePay Playground

[](#securepay-playground)

```
playground.php
```

### Contribution

[](#contribution)

Contributions are welcome! If you'd like to improve this project, fork the repository, create a new branch, and submit a pull request. Please follow best practices and ensure your code is clean and well-documented.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance85

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~25 days

Total

10

Last Release

76d ago

### Community

Maintainers

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

---

Top Contributors

[![ttimot24](https://avatars.githubusercontent.com/u/10697800?v=4)](https://github.com/ttimot24 "ttimot24 (82 commits)")

---

Tags

borgunclientgatewaylibrarypaymentphpsaltpaysecurepayteya

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ttimot24-teya-payment-client/health.svg)

```
[![Health](https://phpackages.com/badges/ttimot24-teya-payment-client/health.svg)](https://phpackages.com/packages/ttimot24-teya-payment-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.3M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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