PHPackages                             lzaplata/thepay - 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. [Framework](/categories/framework)
4. /
5. lzaplata/thepay

ActiveLibrary[Framework](/categories/framework)

lzaplata/thepay
===============

ThePay 2.0 wrappper for Nette framework

v1.0.0(4y ago)16MITPHPPHP &gt;=7.2

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/LZaplata/ThePay)[ Packagist](https://packagist.org/packages/lzaplata/thepay)[ Docs](https://github.com/LZaplata/ThePay)[ RSS](/packages/lzaplata-thepay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

ThePay 2.0
==========

[](#thepay-20)

This is small Nette Framework wrapper for ThePay 2.0 payment gateway.

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

[](#installation)

The easiest way to install library is via Composer.

```
$ composer require lzaplata/thepay: dev-master
```

or edit `composer.json` in your project

```
"require": {
        "lzaplata/thepay": "dev-master"
}
```

You have to register the library as extension in `config.neon` file.

```
extensions:
        thepay: LZaplata\ThePay\DI\Extension
```

Now you can set parameters...

```
thepay:
        demo            : true|false
        merchantId      : *
        projectId       : *
        apiPassword     : *
```

...and autowire library to presenter

```
use LZaplata\ThePay\Service;

/** @var Service @inject */
public $thepay;
```

Usage
-----

[](#usage)

Create payment parameters, set return or notify URL just like in original API client example.

```
$paymentParams = new CreatePaymentParams($amount, $currencyCode, $uid);
$paymentParams->setReturnUrl("some return URL");
```

Create payment.

```
$payment = $this->thepay->createPayment($paymentParams);
```

Redirect to payment gateway.

```
$this->sendResponse(new RedirectResponse($payment->getPayUrl()));
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21e359158717ff6a2f55493600405fb6ad93e5b2cc9c92d0f34743c7e8658bf6?d=identicon)[Zap](/maintainers/Zap)

---

Top Contributors

[![LZaplata](https://avatars.githubusercontent.com/u/12596881?v=4)](https://github.com/LZaplata "LZaplata (3 commits)")

---

Tags

nettegatewaythepay

### Embed Badge

![Health badge](/badges/lzaplata-thepay/health.svg)

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

###  Alternatives

[nette/bootstrap

🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.

68435.8M589](/packages/nette-bootstrap)[contributte/webpack

Webpack integration for Nette Framework.

471.0M1](/packages/contributte-webpack)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)[kdyby/autowired

Syntax sugar for working with services in Nette Framework

30885.7k9](/packages/kdyby-autowired)

PHPackages © 2026

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