PHPackages                             onubrooks/glade-pay - 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. onubrooks/glade-pay

ActiveLibrary[Payment Processing](/categories/payments)

onubrooks/glade-pay
===================

A small PHP library/package that uses the Glade API to make payments using bank transfer option.

v1.2(5y ago)111MITPHP

Since Feb 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/onubrooks/glade-pay)[ Packagist](https://packagist.org/packages/onubrooks/glade-pay)[ RSS](/packages/onubrooks-glade-pay/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

GladePay
========

[](#gladepay)

A small PHP library/package that uses the Glade API to make payments using the bank transfer option.

Getting Started
---------------

[](#getting-started)

You need to have PHP and composer installed on your machine to use this package. The latest versions of both are recommended.

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

[](#installation)

You can clone this project and include the class in your project or add the dependency in your `composer.json` file as in the example below:

```
{
    "require": {
        "onubrooks/glade-pay": "^1.0.0"
    }
}
```

Or run the following command in your project:

`composer require onubrooks/glade-pay`

Usage
-----

[](#usage)

Instantiate the GladePay Class:

```
require_once __DIR__ . '/vendor/autoload.php';

use onubrooks\GladePay\GladePay;

$glade = new GladePay();
```

### Pay Using Bank Transfer

[](#pay-using-bank-transfer)

```
$amount = 30000;
$user_data = '
{
    "firstname":"John",
    "lastname":"Wick",
    "email":"wick@gladeuniverse.com",
    "ip":"192.168.10.5",
    "fingerprint": "cccvxbxbxbc"
}
';
$business_name = "Happy Glade Customer";
$user = json_decode($user_data);

//Initiate a bank transfer Transaction, country and currency are optional and defaults to 'NG' and 'NGN'
// user and business_name are also optional
$transaction = $glade->bankTransfer($amount, $user, $business_name);

//After the transaction is completed, verify to confirm final status.
$verification = $glade->verify("GP61548131820210220X");
```

Return Values
-------------

[](#return-values)

All methods return an array.

Below are the fields returned in the array from the `bankTransfer` method with sample return values:

```
{
  "status": 202,
  "txnRef": "GP61548131820210220X",
  "auth_type": "device",
  "accountNumber": "9922554842",
  "accountName": "GladePay Demo",
  "bankName": "Providus Bank",
  "accountExpires": 600,
  "message": "Make a transfer into the following account using your bank app or internet banking platfrom to complete the transaction"
}
```

For the verify method, here's a sample of the returned values in the array:

```
{
  "status": 200,
  "txnStatus": "pending",
  "txnRef": "GP9225324020210220G",
  "message": "PENDING",
  "chargedAmount": 0,
  "currency": "NGN",
  "payment_method": "bank_transfer",
  "fullname": "John Wick",
  "email": "wick@gladeuniverse.com",
  "bank_message": "Awaiting Validation"
}
```

Running Tests
-------------

[](#running-tests)

The test cases can be run using the following command on windows command line:

`php vendor/phpunit/phpunit/phpunit --bootstrap vendor/autoload.php tests`

For bash users, use the following command:

`php vendor/bin/phpunit --bootstrap vendor/autoload.php tests`

Find other repos by the same author at this [github profile](https://github.com/onubrooks).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

1906d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onubrooks-glade-pay/health.svg)

```
[![Health](https://phpackages.com/badges/onubrooks-glade-pay/health.svg)](https://phpackages.com/packages/onubrooks-glade-pay)
```

###  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)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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