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

ActiveLibrary

rndoom04/comgate
================

A example-template library for PHP.

v1.0(3y ago)09MITPHPPHP &gt;=7.4

Since Nov 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Rndoom04/comgate)[ Packagist](https://packagist.org/packages/rndoom04/comgate)[ RSS](/packages/rndoom04-comgate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Rndoom04\\Comgate
=================

[](#rndoom04comgate)

Comgate is payment gateway from the Czech republic.

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

[](#installation)

Install Rndoom04\\comgate with composer

```
  composer require Rndoom04\comgate
```

Usage/Examples
--------------

[](#usageexamples)

First - init the library.

```
use Rndoom04\comgate\comgate;

$comgate = new comgate();
```

Set the merchant and secret

```
$comgate->setMerchant('mergantID', '*************');
```

Create payment

```
// Prepare data
$paymentData = (object)[
  "price" => 10000, // 100.00 CZK should be 10000 (×100)
  "curr" => "CZK", // Currency
  "label" => "Product name", // Short desc. name
  "refId" => "123456789", // Variable symbol
  "method" => "ALL", // Method for payment
  "test" => true, // false
  "prepareOnly" => false // !important
];

// Create payment, obtain transId and redirect URL
$pay = $comgate->createPayment($data->price, $data->curr, $data->label, $data->refId, $data->method, $data->test, $data->prepareOnly);

// Process
if ($pay['code'] == 0) {
  // OK, save $pay['transId'] for futher use
  // var_dump($pay);
  // Redirect
  Header("Location: ".$pay['redirect']);
  die();
} else {
  // Something went wrong
  // ... do some magic
}
```

Get payment info

```
// Get payment info
$info = $comgate->getPaymentInfo("some-payment-id");
var_dump($info);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0b271462edeed5d7a0d531c7ba6d9e0a544129006f7f1b4de155db16839ebe4?d=identicon)[Rndoom04](/maintainers/Rndoom04)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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