PHPackages                             nattreid/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. [Payment Processing](/categories/payments)
4. /
5. nattreid/comgate

ActiveLibrary[Payment Processing](/categories/payments)

nattreid/comgate
================

Comgate for Nette Framework

1.1.3(7y ago)0153MITPHPPHP &gt;= 7.1

Since Nov 14Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (7)Used By (0)

Comgate pro Nette Framework
===========================

[](#comgate-pro-nette-framework)

Nastavení v **config.neon**

```
extensions:
    comgate: NAttreid\Comgate\DI\ComgateExtension

comgate:
    paymentsUrl: https://payments.comgate.cz/v1.0/
    merchant: 123456
    debug: true
    password: password
```

### Použití

[](#použití)

```
/** @var \NAttreid\Comgate\ComgateClient @inject */
public $comgateClient;

private function actionProcess(): void {
    $comgateClient = $this->comgateClient;

    $transaction= new \NAttreid\Comgate\Helpers\Transaction;
    $transaction->refId=$this->order->id;
    $transaction->country=$this->order->customer->country->code;
    $transaction->currency=$this->order->currency->code;
    $transaction->price=$this->order->price;

    $response = $comgate->transaction($transaction);

    $this->order->setComgateTransactionId($response->transactionId);

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

private function actionRefund(float $price): void {
    $comgateClient = $this->comgateClient;

    $refund = new \NAttreid\Comgate\Helpers\Refund;
    $refund->transactionId = $this->order->comgateTransactionId;
    $refund->price = $price;
    $refund->currency = $this->order->currency->code;

    $response = $comgateClient->refund($refund);

    return $response->isOk();
}

public function actionComgateStatus(): void
	{
		$response = $this->comgateClient->getStatus();
		if ($response->isOk()) {
			if ($response->status === 'PAID') {
				// paid code
			}
		} else {
			// error code
		}

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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 ~5 days

Total

6

Last Release

2710d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a388aeb3f00b15a3af1c1a5d3a2107c94af1730c6043dd30ce32a63f95ea290?d=identicon)[attreid](/maintainers/attreid)

### Embed Badge

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

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

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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