PHPackages                             shibanashiqc/nbo-payment-gateway-php - 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. shibanashiqc/nbo-payment-gateway-php

ActiveLibrary[Payment Processing](/categories/payments)

shibanashiqc/nbo-payment-gateway-php
====================================

NBO Payment Gateway

v2.0(2y ago)120MITPHP

Since Mar 7Pushed 2y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

nbo-payment-gateway-php
=======================

[](#nbo-payment-gateway-php)

Unofficial PHP library for [NBO Unified Checkout](https://www.nbo.om/en/Pages/Corporate-Banking/Support/POS-Solutions.aspx).

Read up here for getting started and understanding the payment flow with NBO Unified Checkout:

### Prerequisites

[](#prerequisites)

- A minimum of PHP 8.1 is required.

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

[](#installation)

- If your project using composer, run the below command

```
composer require shibanashiqc/nbo-payment-gateway-php

```

- If you are not using composer, download the latest release from [the releases section](https://github.com/shibanashiqc/nbo-payment-gateway-php/releases). **You should download the `nbo-payment-gateway-php-1.zip` file**. After that, include `Nbo.php` in your application and you can use the API as usual.

\##Note: This PHP library follows the following practices:

- Namespaced under `Shibanashiqc\NboPaymentGatewayPhp\`
- API throws exceptions instead of returning errors
- Options are passed as an array instead of multiple arguments wherever possible
- All requests and responses are communicated over JSON

Documentation
-------------

[](#documentation)

Documentation of NBO Unified Checkout's API and their usage is available at

Basic Usage
-----------

[](#basic-usage)

Merchant credentials can be obtained from the NBO. You can use the following credentials for testing:

Required parameters for the constructor are: Merchant ID, Password, ResourceKey

```
use Shibanashiqc\NboPaymentGatewayPhp\Nbo;

$request = new Nbo('IPAYlCR6qZF7q6w', 'TEST123456@', '34343434343497');
// $request->client->setURL('production_url_get_from_nbo_dashboard'); // if you got production keys the enable this
$request->setErrorURL('http://localhost:8000/error');
$request->setResponseURL('http://localhost:8000/response');
```

### Create a Payment

[](#create-a-payment)

getPaymentRequest() on this function first parameter is amount, second parameter is customer name, third parameter is customer mobile number, fourth parameter is customer email, fifth parameter is order id

```
$result = $request->getPaymentRequest(20, 'Sj', '458485747', 'user@gmail.com', strval(rand(100000, 999999)));
echo $result->redirectUrl();
```

redirect url to redirect your user to NBO payment page complete the payment after payment complete NBO will redirect to your callback url with payment details

License
-------

[](#license)

The NBO Unified Checkout PHP SDK is released under the MIT License. See [LICENSE](LICENSE) file for more details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

4

Last Release

798d ago

Major Versions

V1.1.2 → v2.02024-03-12

### Community

Maintainers

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

---

Top Contributors

[![shibanashiqc](https://avatars.githubusercontent.com/u/80801260?v=4)](https://github.com/shibanashiqc "shibanashiqc (8 commits)")

### Embed Badge

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

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

###  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)
