PHPackages                             forumpay/payment-gateway-php-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. [Payment Processing](/categories/payments)
4. /
5. forumpay/payment-gateway-php-client

ActiveLibrary[Payment Processing](/categories/payments)

forumpay/payment-gateway-php-client
===================================

Payment Gateway PHP Api Client

v1.6.0(2mo ago)39.2k↓13%12MITPHPPHP &gt;=7.4

Since Jul 18Pushed 2mo ago2 watchersCompare

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

READMEChangelogDependencies (6)Versions (22)Used By (2)

Payment Gateway Webhost PHP Client
==================================

[](#payment-gateway-webhost-php-client)

PHP Client for interacting with Payment Gateway Webhost API

Install
=======

[](#install)

Run `composer require forumpay/payment-gateway-php-client`

Usage
=====

[](#usage)

Example usage for getting currency list.

```
use ForumPay\PaymentGateway\PHPClient\PaymentGatewayApi;

$paymentGatewayApi = new PaymentGatewayApi(
    $paymentGatewayUri,
    $apiUser,
    $apiSecret,
    $userAgentApplicationIdentifier
);

try {
    $getCurrencyListResponse = $paymentGatewayApi->getCurrencyList('EUR');
} catch (ApiExceptionInterface $exception) {
    //TODO: handle the exception
}
```

**Where:**

`$paymentGatewayUri` is *Service URL* as per API documentation

`$apiUser` and `$apiSecret` are credentials for *Payment Gateway API Keys*

`$userAgentApplicationIdentifier` represents the user agent application identifier for HTTP the client. Example: (*'MyPaymentApp/1.0.0'*)

[![Payment Gateway API Keys](docs/readme/api-key.png)](docs/readme/api-key.png)

Available endpoints
===================

[](#available-endpoints)

- Ping
- GetRate
- GetRates
- StartPayment
- CheckPayment
- GetTransactions
- CancelPayment
- GetCurrencyList
- RequestKyc
- GetWalletApps

For corresponding methods refer to `PaymentGatewayApiInterface` in `src/PaymentGatewayApiInterface.php`

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance87

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

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

Every ~48 days

Recently: every ~27 days

Total

21

Last Release

63d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fd7c036e9ffe08d6af34e9428733f7056cb9d6d18a4503abfb28957ce7ad58b?d=identicon)[forumpay](/maintainers/forumpay)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StyleECS

### Embed Badge

![Health badge](/badges/forumpay-payment-gateway-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/forumpay-payment-gateway-php-client/health.svg)](https://phpackages.com/packages/forumpay-payment-gateway-php-client)
```

###  Alternatives

[dnetix/redirection

Library to connect with PlacetoPay Checkout service

17123.3k2](/packages/dnetix-redirection)[tpay-com/tpay-php

Tpay.com library

25260.3k9](/packages/tpay-com-tpay-php)[vipps/module-payment

Vipps MobilePay Payment Module for Magento 2

1195.4k](/packages/vipps-module-payment)[paymentsuite/paymentsuite

PaymentSuite is an easy implementation for lot of Payment Methods for Symfony projects

2615.5k2](/packages/paymentsuite-paymentsuite)

PHPackages © 2026

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