PHPackages                             dischub/dischub - 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. dischub/dischub

ActiveLibrary[Payment Processing](/categories/payments)

dischub/dischub
===============

A PHP SDK for Dischub Payment Gateway

0.1.1(1y ago)04MITPHPPHP &gt;=7.4

Since Jan 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/stanleychihz/dischub_php)[ Packagist](https://packagist.org/packages/dischub/dischub)[ RSS](/packages/dischub-dischub/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Dischub PHP SDK
---------------

[](#dischub-php-sdk)

Overview
--------

[](#overview)

Dischub Payment Gateway is a robust and easy-to-use solution for integrating online payment processing into your PHP-based applications. It supports various payment methods, including Visa, MasterCard, and mobile money wallets, and is designed to ensure secure and seamless transactions.

Features
--------

[](#features)

Simple Integration: Quickly integrate payment functionality with minimal setup. Multiple Payment Methods: Support for credit/debit cards, mobile money, and more. Secure Transactions: PCI-compliant and supports advanced encryption protocols. Customizable: Flexible options to suit your application’s needs. Error Handling: Comprehensive response and error-handling mechanisms. Lightweight and Fast: Optimized for performance and easy to use.

Installation Requirements
-------------------------

[](#installation-requirements)

Before you begin, ensure your server meets the following requirements:

PHP 7.4 or higher cURL extension enabled JSON extension enabled Composer (for dependency management) Installation Using Composer Install the package via Composer:

Copy code

```
composer require dischub/dischub
```

Include the below Composer autoload file in your project:

Copy code

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

Usage
-----

[](#usage)

```
 "your-api-key",
        "sender" => "sender-dischub-account-email@gmail.com",
        "recipient" => "your-dischub-business-account-email@gmail.com",
        "amount" => 100,
        "currency" => "USD"
    ];

    $dischub = new Dischub();
    $response = $dischub->createPayment($data);

    print_r($response);
}

payment();

?>
```

Success Response
----------------

[](#success-response)

```
Array
(
    [status] => success
    [message] => payment initiated
    [response_code] => 200
)
```

Missing Keys Response
---------------------

[](#missing-keys-response)

```
Array
(
    [status] => error
    [message] => missing or invalid required keys
    [response_code] => 400
)
```

Currency Response
-----------------

[](#currency-response)

```
Array
(
    [status] => error
    [message] => Invalid or unsupported currency
    [response_code] => 400
)
```

Authorization Response
----------------------

[](#authorization-response)

```
Array
(
    [status] => error
    [message] => authorization failed
    [response_code] => 401
)
```

Completing Payment
------------------

[](#completing-payment)

If you manage to receive 'success' response from dischub that means your payment has been initiated but not yet completed. To complete the payment you have to attach the link below on the payment button which is on your website, you can name it 'Pay with DiscHub'. This button is the one going to be clicked by your customers so they can complete their payments on your dischub page

```
 https://dischub.co.zw/api/make/payment/to/{your_dischub_business_account_email}
```

Replace the {your\_dischub\_business\_account\_email} with your dischub business email as stated see example below

```
https://dischub.co.zw/api/make/payment/to/softwarez@gmail.com
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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

497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21d7a52f97311b2ace693709aef114211bf6c2d14479fedbc673d94e08884701?d=identicon)[stanleychihz](/maintainers/stanleychihz)

---

Top Contributors

[![stanleychihz](https://avatars.githubusercontent.com/u/123748204?v=4)](https://github.com/stanleychihz "stanleychihz (1 commits)")

### Embed Badge

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

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

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