PHPackages                             lzaplata/payu - 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. lzaplata/payu

ActiveLibrary[Payment Processing](/categories/payments)

lzaplata/payu
=============

PayU wrapper for Nette Framework.

06PHP

Since Feb 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LZaplata/payu)[ Packagist](https://packagist.org/packages/lzaplata/payu)[ RSS](/packages/lzaplata-payu/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayU
====

[](#payu)

This is small Nette Framework wrapper for PayU gateway.

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

[](#installation)

The easiest way to install library is via Composer.

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

or edit `composer.json` in your project

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

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

```
extensions:
        payu: LZaplata\PayU\DI\Extension
```

Now you can set parameters...

```
payu:
        posId           : *
        clientId        : *
        clientSecret    : *
        key2            : *
        sandbox         : true
```

...and autowire library to presenter

```
use LZaplata\PayU\Service;

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

Usage
-----

[](#usage)

In first step you must create order instantion.

```
$order = $this->payu->createOrder([
        "description" => $description,
        "currencyCode" => $currency,
        "totalAmount" => $price,                    // order price in lowest currency unit (1 CZK = 100)
        "extOrderId" => $id,                        // eshop unique id
        "notifyUrl" => $notifyUrl,                  // url form sending notifications from PayU
        "continueUrl" => $continueUrl,              // url to redirect after successful payment
        "products" => [
                0 => [
                        "name" => $productName,
                        "unitPrice" => $unitPrice,  // product price in lowest currency unit (1 CZK = 100)
                        "quantity" => $quantity
                ]
        ],
        "buyer" => [
                "email" => $email,
                "phone" => $phone,
                "firstName" => $name,
                "lastName" => $surname
        ]
]);
```

Second step decides if creating order is successful...

```
try {
        $response = $this->payu->pay($order);
} catch (\OpenPayU_Exception $e) {
        print $e->getMessage();
}
```

...and finally you can redirect to gateway.

```
$this->sendResponse($response);
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7967?v=4)[Lillian Baker](/maintainers/Zap)[@Zap](https://github.com/Zap)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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