PHPackages                             libyaguide/gpay-api-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. libyaguide/gpay-api-client

ActiveLibrary[Payment Processing](/categories/payments)

libyaguide/gpay-api-client
==========================

GPay API PHP Client Library for interacting with the GPay Payment API.

1.0.0(10mo ago)0101MITPHPPHP &gt;=7.2

Since Jun 25Pushed 10mo agoCompare

[ Source](https://github.com/Libya-Guide/GPay-PHP-SDK)[ Packagist](https://packagist.org/packages/libyaguide/gpay-api-client)[ RSS](/packages/libyaguide-gpay-api-client/feed)WikiDiscussions master Synced 1mo ago

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

GPay API PHP Client Library
===========================

[](#gpay-api-php-client-library)

A PHP client for the GPay Payment API. Handles authentication, request signing, response verification, and endpoint logic.

Official GPay API Documentation
-------------------------------

[](#official-gpay-api-documentation)

For full API details, see the [GPay API Documentation](https://gpay.ly/banking/doc/index.html).

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

[](#installation)

Install via Composer:

```
composer require libyaguide/gpay-api-client

```

Usage
-----

[](#usage)

### Import and Create the Client

[](#import-and-create-the-client)

```
require 'vendor/autoload.php';
use GPay\GPayApiClient;
use GPay\BaseUrl;

$client = new GPayApiClient(
    'your_api_key',
    'your_secret_key',
    'your_password',
    BaseUrl::STAGING // or BaseUrl::PRODUCTION
);
```

### Get Wallet Balance

[](#get-wallet-balance)

```
// type: Balance
$balance = $client->getBalance();
print_r($balance);
```

### Create a Payment Request

[](#create-a-payment-request)

```
// type: PaymentRequest
$paymentRequest = $client->createPaymentRequest('100.00', 'INV-123', 'Invoice Payment');
print_r($paymentRequest);
```

### Check Payment Status

[](#check-payment-status)

```
// type: PaymentStatus
$status = $client->checkPaymentStatus($paymentRequest->requestId);
print_r($status);
```

### Send Money

[](#send-money)

```
// type: SendMoneyResult
$sendResult = $client->sendMoney('50.00', 'recipient_wallet_id', 'Gift', 'GIFT-001');
print_r($sendResult);
```

### Get Day Statement

[](#get-day-statement)

```
// type: Statement
$statement = $client->getDayStatement('2025-06-22');
print_r($statement);
foreach ($statement->dayStatement as $tx) {
    // tx: StatementTransaction
    print_r($tx);
}
```

### Check Wallet

[](#check-wallet)

```
// type: WalletCheck
$walletInfo = $client->checkWallet('recipient_wallet_id');
print_r($walletInfo);
```

### Get Outstanding Transactions

[](#get-outstanding-transactions)

```
// type: OutstandingTransactions
$outstanding = $client->getOutstandingTransactions();
print_r($outstanding);
foreach ($outstanding->outstandingTransactions as $tx) {
    // tx: OutstandingTransaction
    print_r($tx);
}
```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance53

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c972222eb8038157d3008f33f47f44c35ccbd0276cfdaf3d13c942dea3097fe4?d=identicon)[basem\_azzabi](/maintainers/basem_azzabi)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/libyaguide-gpay-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/libyaguide-gpay-api-client/health.svg)](https://phpackages.com/packages/libyaguide-gpay-api-client)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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