PHPackages                             eram/pardakht - 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. eram/pardakht

ActiveLibrary[Payment Processing](/categories/payments)

eram/pardakht
=============

A simple, type-safe PHP library for Iranian payment gateways.

v1.0.0-beta.3(1mo ago)07MITPHPPHP ^8.1CI passing

Since Apr 12Pushed 1mo agoCompare

[ Source](https://github.com/eramhq/pardakht)[ Packagist](https://packagist.org/packages/eram/pardakht)[ Docs](https://github.com/eramhq/pardakht)[ RSS](/packages/eram-pardakht/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (8)Versions (4)Used By (0)

Pardakht
========

[](#pardakht)

A unified, type-safe PHP library for Iranian payment gateways.

[![Tests](https://github.com/eramhq/pardakht/actions/workflows/tests.yml/badge.svg)](https://github.com/eramhq/pardakht/actions)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/ef363a5a30025ffef1857918c40fa01e97f03929e5f87d12a14bf334a7de9220/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d3838393242462e737667)](https://php.net/)

**Documentation:** [English](docs/en/README.md) | [فارسی](docs/fa/README.md)

What is Pardakht?
-----------------

[](#what-is-pardakht)

Pardakht (پرداخت, "payment" in Farsi) is an omni-gateway PHP library that gives you a single, consistent API across **all major Iranian payment providers** — bank gateways (SOAP) and modern payment services (REST) alike. Write your payment logic once, swap the gateway with one line of config.

**Why Pardakht?**

- **Minimal dependencies** — one internal Composer package ([`eram/abzar`](https://github.com/eramhq/abzar-php), Persian/Iranian utilities) plus the standard PHP extensions `ext-curl`, `ext-json`, `ext-openssl`, `ext-soap`. No Guzzle, no framework coupling, no third-party supply-chain risk.
- **Rial/Toman safety** — the `Amount` value object eliminates the 10x conversion bugs that plague Iranian e-commerce.
- **One interface, every gateway** — `purchase()` → `verify()` → optionally `settle()`. Same flow whether it's Zarinpal or Mellat.
- **Framework-agnostic** — works with Laravel, Symfony, or plain PHP. Plug in your own HTTP client, logger, or event dispatcher.
- **Fully tested** — unit tests for every gateway, PHPStan static analysis, PER-CS2 code style.

Install
-------

[](#install)

```
composer require eram/pardakht
```

Supported Gateways
------------------

[](#supported-gateways)

AliasGatewayProtocolSettlementDocs`zarinpal`ZarinpalRESTAuto[Guide](docs/en/gateways/zarinpal.md)`mellat`Mellat (Behpardakht)SOAP**Required**[Guide](docs/en/gateways/mellat.md)`saman`Saman (Sep)SOAPAuto[Guide](docs/en/gateways/saman.md)`parsian`Parsian (Pec)SOAP**Required**[Guide](docs/en/gateways/parsian.md)`sadad`Sadad (Bank Melli)RESTAuto[Guide](docs/en/gateways/sadad.md)`pasargad`PasargadRESTAuto[Guide](docs/en/gateways/pasargad.md)`idpay`IDPayRESTAuto[Guide](docs/en/gateways/idpay.md)`zibal`ZibalRESTAuto[Guide](docs/en/gateways/zibal.md)`payir`Pay.irRESTAuto[Guide](docs/en/gateways/payir.md)`nextpay`NextPayRESTAuto[Guide](docs/en/gateways/nextpay.md)`vandar`VandarRESTAuto[Guide](docs/en/gateways/vandar.md)`sizpay`SizpayRESTAuto[Guide](docs/en/gateways/sizpay.md)Quick Start
-----------

[](#quick-start)

The flow is always: **create → purchase → redirect → verify** (and optionally **settle** for bank gateways).

See the [Getting Started](docs/en/getting-started.md) guide for a complete walkthrough with code examples.

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

[](#documentation)

Full documentation with API reference, cookbook, gateway guides, and more:

- [English Documentation](docs/en/README.md)
- [مستندات فارسی](docs/fa/README.md)

About Eram
----------

[](#about-eram)

[Eram](https://eram.dev) is a small engineering team building open-source developer tools for the Persian ecosystem. Our projects — [pardakht](https://github.com/eramhq/pardakht), [daynum](https://github.com/eramhq/daynum), [persian-kit](https://github.com/eramhq/persian-kit) — solve the everyday problems that Iranian developers run into: payment integration, calendar conversion, and string/number localization. Everything we ship is MIT-licensed, zero-dependency where possible, and built to be boring infrastructure you never have to think about.

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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

Every ~26 days

Total

3

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79f7082bc28725eab3841fb8e6d28a55302aa621b694cb8567e0a6c7b0013495?d=identicon)[mostafasoufi](/maintainers/mostafasoufi)

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

---

Top Contributors

[![mostafasoufi](https://avatars.githubusercontent.com/u/701520?v=4)](https://github.com/mostafasoufi "mostafasoufi (18 commits)")

---

Tags

gatewaymellatpardakhtpaymentshaparakzarinpalpaymentgatewayiranzarinpalzibalsamanmellatpasargadparsiansadadidpaypardakht

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24354.2k](/packages/larabook-gateway)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)[omalizadeh/laravel-multi-payment

A driver-based laravel package for online payments via multiple gateways

491.2k](/packages/omalizadeh-laravel-multi-payment)

PHPackages © 2026

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