PHPackages                             dpsoft/mellat - 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. dpsoft/mellat

ActiveLibrary[Payment Processing](/categories/payments)

dpsoft/mellat
=============

Mellat bank online payment - درگاه پرداخت بانک ملت به زبان PHP

v1.1(3y ago)01.4k↑22.2%21GPL-2.0-or-laterPHPPHP ^7.1|^8CI failing

Since Jan 18Pushed 3y ago2 watchersCompare

[ Source](https://github.com/dpsoft-official/mellat)[ Packagist](https://packagist.org/packages/dpsoft/mellat)[ Docs](https://github.com/dpsoft/mellat)[ RSS](/packages/dpsoft-mellat/feed)WikiDiscussions master Synced 1w ago

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

Mellat bank online payment - درگاه پرداخت بانک ملت به زبان PHP
==============================================================

[](#mellat-bank-online-payment---درگاه-پرداخت-بانک-ملت-به-زبان-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8290eea4e3238cfc7102c93f6477a86cd07ff7b6efb9bb97fb184e3d4b823296/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6470736f66742f6d656c6c61742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dpsoft/mellat)[![Total Downloads](https://camo.githubusercontent.com/587941833f72888da70c21f2cf4d0a8978d7e6f7fa9913649b3661a16232aa6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6470736f66742f6d656c6c61742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dpsoft/mellat)

Mellat bank transaction library based on php soap extension.

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

[](#installation)

You can install the package via composer:

```
composer require dpsoft/mellat
```

Usage
-----

[](#usage)

1- Request transaction and redirect to bank:

```
try{
    $mellat = new \Dpsoft\Mellat\Mellat($terminalId, $userName, $userPassword);
    $response = $mellat->request($amount);

    //save $response info like token($response['token']) and orderId($response['order_id']) then redirect to bank
    echo "redirecting to bank...";
    $response->redirectToBank();
}catch(\Throwable $e){
    echo "error: ".$e->getMessage();
}
```

2- Handle bank response:

```
try{
    $mellat = new \Dpsoft\Mellat\Mellat($terminalId, $userName, $userPassword);
    $response = $mellat->verify();

    //successful payment. save $response info like reference id($response['reference_id'])
    echo "successful payment.Thanks...";
}catch(\Throwable $e){
    echo "error: ".$e->getMessage();
}
```

### Testing

[](#testing)

```
composer test
```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Dpsoft.ir](https://dpsoft.ir)
- [SadeghPM](https://github.com/sadeghpm)

License
-------

[](#license)

The GNU GPLv3. Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~916 days

Total

2

Last Release

1396d ago

PHP version history (2 changes)v1.0PHP ^7.1

v1.1PHP ^7.1|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8ce9db5e47c9f42b80ea1102230d26603ed743596b579011934e7b67b37811d?d=identicon)[dpsoft-ir](/maintainers/dpsoft-ir)

![](https://www.gravatar.com/avatar/0ecb8440161efaed64e53693c2e1de411dfef84f383585392adc01b5b62e143c?d=identicon)[SadeghPM](/maintainers/SadeghPM)

---

Top Contributors

[![SadeghPM](https://avatars.githubusercontent.com/u/9298600?v=4)](https://github.com/SadeghPM "SadeghPM (14 commits)")[![A1Gard](https://avatars.githubusercontent.com/u/9222481?v=4)](https://github.com/A1Gard "A1Gard (1 commits)")[![DpSoft-ir](https://avatars.githubusercontent.com/u/36793372?v=4)](https://github.com/DpSoft-ir "DpSoft-ir (1 commits)")

---

Tags

mellatdpsoft

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shetabit/payment

Laravel Payment Gateway Integration Package

944330.1k5](/packages/shetabit-payment)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24553.7k](/packages/larabook-gateway)[omalizadeh/laravel-multi-payment

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

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

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)

PHPackages © 2026

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