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

ActiveLibrary

lzaplata/comgate
================

Comgate wrapper for Nette Framework.

0263PHP

Since Oct 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/LZaplata/Comgate)[ Packagist](https://packagist.org/packages/lzaplata/comgate)[ RSS](/packages/lzaplata-comgate/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Comgate
=======

[](#comgate)

This is small Nette Framework wrapper for Comgate.

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

[](#installation)

The easiest way to install library is via Composer.

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

or edit `composer.json` in your project

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

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

```
extensions:
        comgate: LZaplata\Comgate\DI\Extension
```

Now you can set parameters...

```
comgate:
        merchant        : *
        secret          : *
        sandbox         : true
        preauth         : false
```

...and autowire library to presenter

```
use LZaplata\Comgate\Service;

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

Usage
-----

[](#usage)

Create payment.

```
$payment = $this->comgate->createPayment(
    $price                  // total price - float
);
```

Get payment ID and save it to database.

```
$payId = $payment->getPayId();
```

Send payment.

```
$response = $payment->send();
```

Redirect to payment gateway.

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

...or get redirect url.

```
$response->getRedirectUrl();
```

### After return from gateway

[](#after-return-from-gateway)

Get response and check if payment was successful

```
$response = $this->comgate->getReturnResponse();

if ($response->isOk()) {
    $payId = $response->getPayId();

    // do something
}

// output must be clean, so you have to terminate presenter and turn off Tracy
$this->terminate();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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://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 (2 commits)")[![Eflyax](https://avatars.githubusercontent.com/u/10993320?v=4)](https://github.com/Eflyax "Eflyax (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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