PHPackages                             vahidkaargar/jibit - 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. vahidkaargar/jibit

ActiveLibrary

vahidkaargar/jibit
==================

Jibit composer packages

20PHP

Since Feb 20Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

جیبیت (Jibit gateway)
=====================

[](#جیبیت-jibit-gateway)

پکیج کامپوزر درگاه واسط جیبیت (Jibit gateway php composer package)

جیبیت به عنوان یکی از بزرگ‌ترین پرداخت‌یار‌های رسمی شاپرک (بانک مرکزی)، با ارائه درگاه پرداخت با قابلیت اتصال به درگاه‌های متنوع و مسیردهی هوشمند بین PSPها در راستای پایداری در سیستم پرداخت و افزایش درآمد در کنار کسب و کارها ایستاده است.

### Compatibility

[](#compatibility)

`php 7.4 and up`

### Installation

[](#installation)

```
composer require vahidkaargar/jibit

```

### Request to payment

[](#request-to-payment)

```
use vahidkaargar\jibit;

$jibit = new Jibit("API_KEY", "API_SECRET");

$request = $jibit->paymentRequest('AMOUNT_RIAL', 'YOUR_INVOICE_ID', 'MOBILE_NUMBER', 'CALLBACK_URL');

if (!empty($request['pspSwitchingUrl'])) {
    // successful result and redirect to PG
    header('Location: ' . $request['pspSwitchingUrl']);
}
if (!empty($request['errors'])) {
    // fail result and show the error
    echo $request['errors'][0]['code'] . ' ' . $request['errors'][0]['message'];
}
```

### Verify payment

[](#verify-payment)

```
use vahidkaargar\jibit;

if (empty($_POST['amount']) || empty($_POST['purchaseId']) || empty($_POST['status'])) {
    echo 'No data found.';
} else {
    //get data from query string
    $amount = $_POST['amount'];
    $refNum = $_POST['purchaseId'];
    $state = $_POST['status'];

    $jibit = new Jibit("API_KEY", "API_SECRET");

    // Making payment verify
    $request = $jibit->paymentVerify($refNum);
    if (!empty($request['status']) && $request['status'] === 'SUCCESSFUL') {
        //successful result
        echo 'Successful! refNum:' . $refNum;

        //show session detail
        $order = $jibit->getOrderById($refNum);
        if (!empty($order['elements'][0]['pspMaskedCardNumber'])) {
            echo 'payer card pan mask: ' . $order['elements'][0]['pspMaskedCardNumber'];
        }
    } else {
        echo 'Verifying payment has been failed!';
    }
}
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

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/7b5c1e29f86cb6c6ff19aeb5691fe3f16f5d391871eb4ac4250e6bf8ddc6a4d1?d=identicon)[vahidkaargar](/maintainers/vahidkaargar)

---

Top Contributors

[![vahidkaargar](https://avatars.githubusercontent.com/u/3912242?v=4)](https://github.com/vahidkaargar "vahidkaargar (12 commits)")

### Embed Badge

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

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

PHPackages © 2026

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