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

ActiveLibrary

kevujin/comgate-client
======================

Comgate client wrapper conatining all available developed request/responses

1.3.2(11mo ago)018MITPHPPHP 7.4 - 8.4

Since Dec 10Pushed 11mo agoCompare

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

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/de32a0d95ddec67af6dc0bc5ed39c3dd5c569730f0bd5764ea33a66e3453b331/68747470733a2f2f7472617669732d63692e6f72672f72656e61742d6d616761646965762f636f6d676174652d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/renat-magadiev/comgate-client) [![Coverage Status](https://camo.githubusercontent.com/5c77b8b9cee8c606c936824af54fb582991d7e5918190881d68fbaed2af13315/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f72656e61742d6d616761646965762f636f6d676174652d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/renat-magadiev/comgate-client?branch=master)

Comgate API client
==================

[](#comgate-api-client)

Comgate API client wrapper conatining all available developed request/responses

Is forked from from tomasz-kusy/comgate-client and contains also updates from renat-magadiev/comgate-client which is the original developer

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- [guzzlehttp/guzzle](https://packagist.org/packages/guzzlehttp/guzzle)

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

[](#installation)

```
$ composer require kevujin/comgate-client
```

Base usage - create a client
----------------------------

[](#base-usage---create-a-client)

```
use Comgate\Client;

$client = new Client(
    'merchant', // your merchant ID you got from Comgate
    true, // if testing environment -> false = production
    'secret' // secret passphrase/token you got from Comgate
);
```

Create payment
--------------

[](#create-payment)

```
use Comgate\Request\CreatePayment;

$createPayment = new CreatePayment(
    1000, // the price in cents 10.00 => 1000
    'orderId', // your ID
    'test@test.cz', // email of customer or some email for Comgate to communicate with if payment problems
    'Product name' // payment label
);

$createPaymentResponse = $client->send($createPayment);

$redirectUrl = $createPaymentResponse->getRedirectUrl();
```

`CreatePayment` class has the same props as described in Comgate [documentation](https://help.comgate.cz/docs/protocol-api-en#creating-a-payment)

Get payment status
------------------

[](#get-payment-status)

```
use Comgate\Request\PaymentStatus;

$paymentStatus = new PaymentStatus(
    'transId' // Comgate ID you received from create payment process
);

$paymentStatusResponse = $client->send($paymentStatus);
```

`PaymentStatus` response class has the same props as described in Comgate [documentation](https://help.comgate.cz/docs/protocol-api-en#getting-payment-status-in-the-background)

Cancel payment
--------------

[](#cancel-payment)

```
use Comgate\Request\CancelPayment;

$cancelPayment = new CancelPayment(
    'transId' // Comgate ID you received from create payment process
);

$cancelPaymentResponse = $client->send($cancelPayment);
```

`CancelPayment` response and request class has the same props as described in Comgate [documentation](https://help.comgate.cz/docs/protocol-api-en#storno-of-payment)

Get payment methods
-------------------

[](#get-payment-methods)

```
use Comgate\Request\GetMethods;

$getMethods = new GetMethods(
    'currency', // currency to filter methods for, could be null to match all available
    'country' // country to filter methods available in, could be null to match all available
);

$getMethodsResponse = $client->send($getMethods);
var_dump($getMethodsResponse->methods);
var_dump($getMethodsResponse->getMethod('BANK_ALL')); // exact one method
```

`GetMethods` response and request class are described in Comgate [documentation](https://help.comgate.cz/docs/protocol-api-en#obtaining-allowed-methods)

List transfers
--------------

[](#list-transfers)

Get the list of fund transfer for provided date. There might be more transfers in one day than only one or there can be none. Transfers are used to be processed about 15:00 GMT.

```
use Comgate\Request\ListTransfers;

$listTransfers = new ListTransfers(
    date('Y-m-d') // let's look for today
);

$listTransfersResponse = $client->send($listTransfers);
var_dump($listTransfersResponse->transfers); // collection of Response\Item\Transfer
```

`ListTransfers` response and request class are described in Comgate [documentation](https://help.comgate.cz/docs/protocol-api-en#list-of-transfers-within-the-day)

For each transfer there is another API call to get its detail (exact payments) which are included in such transfer

```
foreach ($listTransfersResponse->transfers as $transfer) { // transfer is object Response\Item\Transfer
    $getTransferRequest = $transfer->createRequest(); // Request\GetTransfer

    $getTransferResponse = $client->send($getTransferRequest);
    var_dump($getTransferResponse->transferItems); // collection of Response\Item\TransferItem
}
```

`GetTransfer` response and request class are described in Comgate [documentation](https://help.comgate.cz/docs/protocol-api-en#detail-of-bank-transfer)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance52

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~217 days

Total

8

Last Release

338d ago

Major Versions

0.1 → 1.02017-12-25

PHP version history (4 changes)0.1PHP ^7.0

1.1PHP ^7.4

1.3PHP 7.4 - 8.3

1.3.2PHP 7.4 - 8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/18246df589bc719092df83b007e6546ae1237f4815ce21fa9228cc810c7f33b1?d=identicon)[kevujin](/maintainers/kevujin)

---

Top Contributors

[![renat-magadiev](https://avatars.githubusercontent.com/u/12897610?v=4)](https://github.com/renat-magadiev "renat-magadiev (17 commits)")[![kevujin](https://avatars.githubusercontent.com/u/23450534?v=4)](https://github.com/kevujin "kevujin (16 commits)")[![tomasz-kusy](https://avatars.githubusercontent.com/u/40465697?v=4)](https://github.com/tomasz-kusy "tomasz-kusy (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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