PHPackages                             aqayepardakht/php-sdk - 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. aqayepardakht/php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

aqayepardakht/php-sdk
=====================

1.3.0(1y ago)06981[8 PRs](https://github.com/aqayepardakht/php-sdk/pulls)2PHP

Since Nov 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aqayepardakht/php-sdk)[ Packagist](https://packagist.org/packages/aqayepardakht/php-sdk)[ RSS](/packages/aqayepardakht-php-sdk/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (6)Used By (2)

sdk اتصال به api پرداخت آقای پرداخت

نحوه نصب
--------

[](#نحوه-نصب)

نصب توسط کامپوزر

```
composer require aqayepardakht/php-sdk
```

نحوه استفاده سریع
-----------------

[](#نحوه-استفاده-سریع)

ساخت فاکتور و ارسال به درگاه بانکی

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

$api = new Aqayepardakht\PhpSdk\Api([
     'pin'     => 'Your Pin',
]);

try {
    $pay = $api->gateway()
                ->invoice(['amount' => 500])
                ->callback('Your Callback')
                ->create();

    $traceCode = $pay->getTraceCode(); // دریافت کد رهگیری
    $pay->start(); // ریدایرکت کاربر به صفحه پرداخت
} catch (Exception $e) {
    echo $e->getCode().' : '.$e->getMessage();
}
```

تایید تراکنش پس از بازگشت از صفحه بانکی

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

$trackingNumber = $_POST['tracking_number']; // کد رهگیری بانکی
$traceCode      = $_POST['transid']; // کد رهگیری برای تایید تراکنش
$api            = new Aqayepardakht\PhpSdk\Api();

try {
    $pay = $api->gateway('Your Pin')
                ->invoice(['amount' => 1100])
                ->verify($traceCode);
} catch (Exception $e) {
    echo $e->getCode().' : '.$e->getMessage();
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

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

Total

5

Last Release

640d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93650646?v=4)[AqayePardakht](/maintainers/aqayepardakht)[@aqayepardakht](https://github.com/aqayepardakht)

---

Top Contributors

[![erfannorouzii777](https://avatars.githubusercontent.com/u/79180331?v=4)](https://github.com/erfannorouzii777 "erfannorouzii777 (5 commits)")

### Embed Badge

![Health badge](/badges/aqayepardakht-php-sdk/health.svg)

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[binkode/laravel-paystack

A description for laravel-paystack.

112.1k](/packages/binkode-laravel-paystack)

PHPackages © 2026

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