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. [API Development](/categories/api)
4. /
5. lzaplata/comgate

ActiveLibrary[API Development](/categories/api)

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 2w 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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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://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 (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)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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