PHPackages                             navid/gateway - 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. navid/gateway

ActiveLibrary[Payment Processing](/categories/payments)

navid/gateway
=============

Payment Package with Pasargad two step

3.2.6(9y ago)017MITPHP

Since May 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/navidmetal/gateway)[ Packagist](https://packagist.org/packages/navid/gateway)[ Docs](https://github.com/larabook/gateway)[ RSS](/packages/navid-gateway/feed)WikiDiscussions dev Synced 3d ago

READMEChangelogDependencies (1)Versions (33)Used By (0)

package's home : [larabook.ir](http://larabook.ir/%D8%A7%D8%AA%D8%B5%D8%A7%D9%84-%D8%AF%D8%B1%DA%AF%D8%A7%D9%87-%D8%A8%D8%A7%D9%86%DA%A9-%D9%84%D8%A7%D8%B1%D8%A7%D9%88%D9%84/)

by this package we are able to connect to all Iranian bank with one unique API.

Please inform us once you've encountered [bug](https://github.com/larabook/gateway/issues) or [issue](https://github.com/larabook/gateway/issues) .

Available Banks:

1. MELLAT
2. SADAD (MELLI)
3. SAMAN
4. PARSIAN
5. PASARGAD
6. ZARINPAL
7. JAHANPAY (Disabled)
8. PAYLINE (Disabled)

---

**Installation**:

Run below statements on your terminal :

STEP 1 :

```
composer require larabook/gateway

```

STEP 2 : Add `provider` and `facade` in config/app.php

```
'providers' => [
  ...
  Larabookir\Gateway\GatewayServiceProvider::class, //  [
  ...
  'Gateway' => Larabookir\Gateway\Gateway::class, // setCallback(url('/path/to/calback/route')); You can also change the callback
   $gateway->price(1000)->ready();
   $refId =  $gateway->refId();
   $transID = $gateway->transactionId();

   // Your code here

   return $gateway->redirect();

} catch (Exception $e) {

   	echo $e->getMessage();
}

```

you can call the gateway by these ways :

1. Gateway::make(new Mellat());
2. Gateway::mellat()
3. app('gateway')-&gt;make(new Mellat());
4. app('gateway')-&gt;mellat();

Instead of MELLAT you can enter other banks Name as we introduced above .

In `price` method you should enter the price in IRR (RIAL)

and in your callback :

```
try {

   $gateway = \Gateway::verify();
   $trackingCode = $gateway->trackingCode();
   $refId = $gateway->refId();
   $cardNumber = $gateway->cardNumber();

   // Your code here

} catch (Exception $e) {

   echo $e->getMessage();
}

```

If you are intrested to developing this package you can help us by these ways :

1. Improving documents.
2. Reporting issue or bugs.
3. Collaboration in writing codes and other banks modules.

This package is extended from PoolPort but we've changed some functionality and improved it .

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 79.6% 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 ~12 days

Recently: every ~5 days

Total

31

Last Release

3306d ago

Major Versions

1.2 → 2.02016-05-04

2.9.9 → 3.02016-12-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/7417a7ce6b48099d4231e92eb42a72c5ae58708cb83e24f57619182df4e2e39b?d=identicon)[navidmetal](/maintainers/navidmetal)

---

Top Contributors

[![hpakdaman](https://avatars.githubusercontent.com/u/9606809?v=4)](https://github.com/hpakdaman "hpakdaman (109 commits)")[![honarkhah](https://avatars.githubusercontent.com/u/904829?v=4)](https://github.com/honarkhah "honarkhah (14 commits)")[![erfansahaf](https://avatars.githubusercontent.com/u/12012168?v=4)](https://github.com/erfansahaf "erfansahaf (4 commits)")[![navidmetal](https://avatars.githubusercontent.com/u/14232930?v=4)](https://github.com/navidmetal "navidmetal (4 commits)")[![Ahmad110](https://avatars.githubusercontent.com/u/10651421?v=4)](https://github.com/Ahmad110 "Ahmad110 (2 commits)")[![Anisi](https://avatars.githubusercontent.com/u/7829372?v=4)](https://github.com/Anisi "Anisi (1 commits)")[![amirdew](https://avatars.githubusercontent.com/u/1938899?v=4)](https://github.com/amirdew "amirdew (1 commits)")[![alighasemzadeh-archived](https://avatars.githubusercontent.com/u/85446576?v=4)](https://github.com/alighasemzadeh-archived "alighasemzadeh-archived (1 commits)")[![akoSalman](https://avatars.githubusercontent.com/u/17239230?v=4)](https://github.com/akoSalman "akoSalman (1 commits)")

---

Tags

laravelportpaymentgatewayBankpayiranzarinpalPaylineshaparaksamanMelimellatpasargadparsiansadadjahanpaypardakhtdargahiranian-bankspersian-bankspoolportipay

### Embed Badge

![Health badge](/badges/navid-gateway/health.svg)

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

###  Alternatives

[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

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

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)

PHPackages © 2026

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