PHPackages                             vnpost/bankhub - 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. vnpost/bankhub

ActiveLibrary

vnpost/bankhub
==============

A Laravel package for BankHub API integration

1.0.3(1y ago)0471Apache-2.0PHPPHP &gt;=8.1

Since Aug 9Pushed 1y agoCompare

[ Source](https://github.com/Vietnam-Post/BankHub-PHP)[ Packagist](https://packagist.org/packages/vnpost/bankhub)[ RSS](/packages/vnpost-bankhub/feed)WikiDiscussions master Synced 1mo ago

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

BankHub PHP Package
===================

[](#bankhub-php-package)

A PHP package for BankHub API integration.

Author
------

[](#author)

Kiên Nguyễn

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

[](#installation)

To install the package, run the following command:

```
composer require vnpost/bankhub
```

Configuration
-------------

[](#configuration)

### Step 1: Publish Configuration

[](#step-1-publish-configuration)

Publish the configuration file using the following command:

```
php artisan vendor:publish --provider="BankHub\BankHubServiceProvider"
```

### Step 2: Update .env File

[](#step-2-update-env-file)

Add the following variables to your .env file:

```
BANKHUB_MODE=sandbox
BANKHUB_CLIENT_ID=your-client-id
BANKHUB_SECRET_KEY=your-secret-key
```

Step 3: How to use?
-------------------

[](#step-3-how-to-use)

Option 1:

```
use BankHub\BankHubClient;

$response = BankHubClient::AuthCode('your-authorization-code')->grantToken($data);
```

Option 2:

```
use BankHub\BankHubClient;

$client = new BankHubClient();
$client->AuthCode('your-authorization-code');
$response = $client->grantToken($data);
```

Option 3:

```
use BankHub\BankHubClient;

$client = new BankHubClient('your-authorization-code');
$response = $client->grantToken($data);
```

### List of available functions

[](#list-of-available-functions)

> 1. grantToken
> 2. grantExchange
> 3. grantInvalidate
> 4. grantRemove
> 5. Identity
> 6. Balance
> 7. Transactions
> 8. QrPay

Chi tiết xem tại

License
-------

[](#license)

This package is open-sourced software licensed under the [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0) license.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dbf47b879684e141e3b81a02cbed9cebdbfb8b32bdcfbb86ebab83954d71946?d=identicon)[tkien](/maintainers/tkien)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vnpost-bankhub/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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