PHPackages                             amirmehr/mehr-gate - 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. amirmehr/mehr-gate

ActiveLibrary[Payment Processing](/categories/payments)

amirmehr/mehr-gate
==================

easy gate connection with test mode for zarinpal.com

0.1(4y ago)012MITPHP

Since Feb 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/amirmehr-ir/mehr-gate)[ Packagist](https://packagist.org/packages/amirmehr/mehr-gate)[ Docs](https://github.com/amirmehr-ir/mehr-gate)[ RSS](/packages/amirmehr-mehr-gate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

MehrGate Laravel
----------------

[](#mehrgate-laravel)

This package is developed by Amir Hosein Sharifi Mehr for ''

---

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

[](#installation)

```
composer require amirmehr/mehr-gate

```

Put current line to 'providers' in config/app.php
-------------------------------------------------

[](#put-current-line-to-providers-in-configappphp)

```
Amirmehr\MehrGate\MehrGateServiceProvider::class

```

Put current line to 'aliases' in config/app.php
-----------------------------------------------

[](#put-current-line-to-aliases-in-configappphp)

```
'MehrGate' =>Amirmehr\MehrGate\MehrGateFacade::class

```

Usage
=====

[](#usage)

.env variables
--------------

[](#env-variables)

```
MEHR_GATE_CALLBACK=http://localhost/public/verify
MEHR_GATE_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
MEHR_GATE_TEST=true
```

Init request to gate
--------------------

[](#init-request-to-gate)

```
$result_gate = MehrGate::request( 2000, 'توضیحات', '09185001010' );

if ( isset( $result_gate["Status"] ) && $result_gate["Status"] == 100 ) {
    $result_gate["Authority"];
    $result_gate["StartPay"];
} else {
    $result_gate["Status"];
    $result_gate["Message"];
}
```

Authority (Token) &amp; StartPay must save in DB

License
-------

[](#license)

The MehrGate is open source licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

Unknown

Total

1

Last Release

1546d ago

### Community

Maintainers

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

---

Top Contributors

[![amirmehr-ir](https://avatars.githubusercontent.com/u/61452788?v=4)](https://github.com/amirmehr-ir "amirmehr-ir (12 commits)")

### Embed Badge

![Health badge](/badges/amirmehr-mehr-gate/health.svg)

```
[![Health](https://phpackages.com/badges/amirmehr-mehr-gate/health.svg)](https://phpackages.com/packages/amirmehr-mehr-gate)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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