PHPackages                             ashrafsaqib/payhubp - 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. ashrafsaqib/payhubp

ActiveLibrary[Payment Processing](/categories/payments)

ashrafsaqib/payhubp
===================

Payhub Plus Transactions API

06PHP

Since Jan 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ashrafsaqib/payhubp)[ Packagist](https://packagist.org/packages/ashrafsaqib/payhubp)[ RSS](/packages/ashrafsaqib-payhubp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

payhubp
=======

[](#payhubp)

Payhub Plus Transaction API PHP Package For Laravel and with some minor customization it can be used without laravel as well.

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

[](#installation)

This package is very easy to set up. There are only couple of steps.

### Composer

[](#composer)

Pull this package in through Composer

`composer require ashrafsaqib/payhubp`

### Config File

[](#config-file)

In the config/app.php file add the following line

```
/*
 * Package Service Providers...
 */
 PayHubP\PayHubPServiceProvider::class,

```

In the project .env file define the logins according to your payhub plus merchant account.

GATEWAY\_USERNAME

GATEWAY\_PASSWORD

### Usage

[](#usage)

Include these files on the top on your controller

```
// PayHubP Classes
use PayHubP\flexport_API;
use PayHubP\Params;
use Response;
```

```
// PayHubP starts
$ws = new flexport_API();
$ws_params = new Params();

$ws_params->GatewayUserName = env('GATEWAY_USERNAME');
$ws_params->GatewayPassword = env('GATEWAY_PASSWORD');
$ws_params->TransactionType = "sale";
$ws_params->PaymentType = "creditcard";
$ws_params->Amount = $amount;
$ws_params->CCNumber = $request->cc_number;
$ws_params->CCExpDate = $request->cc_expire_month . $request->cc_expire_year;
$ws_params->CVV = $request->ccv;

$ws_response = $ws->ProcessTransaction($ws_params);

if ($ws_response->STATUS_CODE != 1) {
    return 'false';
}

```

More Information
----------------

[](#more-information)

For any other disucssion relevant to this package, you can contact me at

Credit Note
-----------

[](#credit-note)

This package is an adaptation of PayHub Plus Sample Code for transactions.

Opening an Issue
----------------

[](#opening-an-issue)

Before opening an issue there are a couple of considerations:

- A **star** on this project shows support and is way to say thank you to all the contributors. If you open an issue without a star, *your issue may be closed without consideration.* Thank you for understanding and the support. You are all awesome!
- **Read the instructions** and make sure all steps were *followed correctly*.
- **Check** that the issue is not *specific to your development environment* setup.
- **Provide** *duplication steps*.
- **Attempt to look into the issue**, and if you *have a solution, make a pull request*.
- **Show that you have made an attempt** to *look into the issue*.
- **Check** to see if the issue you are *reporting is a duplicate* of a previous reported issue.
- **Following these instructions show me that you have tried.**
- If you have a questions send me an email to
- Please be considerate that this is an open source project that I provide to the community for FREE when opening an issue.

License
-------

[](#license)

This package is free software distributed under the terms of the MIT license.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

### Community

Maintainers

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

---

Top Contributors

[![ashrafsaqib](https://avatars.githubusercontent.com/u/6285083?v=4)](https://github.com/ashrafsaqib "ashrafsaqib (6 commits)")

### Embed Badge

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

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

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