PHPackages                             hans-thomas/zarinpal - 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. hans-thomas/zarinpal

ActiveLibrary

hans-thomas/zarinpal
====================

transaction request system for zarinpal

8.1.2(5y ago)6881GPL-2.0-onlyPHP

Since Dec 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Hans-Thomas/zarinpal)[ Packagist](https://packagist.org/packages/hans-thomas/zarinpal)[ RSS](/packages/hans-thomas-zarinpal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Zarinpal Package for laravel 8.x
================================

[](#zarinpal-package-for-laravel-8x)

transaction request library for zarinpal

usage
-----

[](#usage)

### installation

[](#installation)

`composer require hans-thomas/zarinpal`

laravel ready
-------------

[](#laravel-ready)

define these env variables in .env file

```
merchantID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
sandbox=true
zarinGate=false
```

then add this to `config/services.php`

```
'zarinpal' => [
    'merchantID' => env( 'merchantID', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' ),
    'zarinGate'  => env( 'zarinGate', false ),
    'sandbox'    => env( 'sandbox', false ),
],
```

now you can access the zarinpal lib like this:

```
use Zarinpal\Laravel\Facade\Zarinpal;

$results = Zarinpal::request(
    "example.com/call_back",               //call back url is required
    1000,                                  //amount is required
    'testing',                             //description is required also
    'metadata' => [
        'me@example.com',                  // email is optional
        '09000000000',                     //phone number is optional
    ]

);
// save $results['authority'] for verifying step
Zarinpal::redirect(); // redirect to zarinpal

// after that verify transaction by that $results['authority']
Zarinpal::verify(1000,$results['authority']);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

1834d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bca622c2e351a8b18ffc2acc6365e99d9c5f16765a9cdc2a0f03110834bc1102?d=identicon)[hans-thomas](/maintainers/hans-thomas)

---

Top Contributors

[![hans-thomas](https://avatars.githubusercontent.com/u/39920372?v=4)](https://github.com/hans-thomas "hans-thomas (7 commits)")

---

Tags

laravellaravel-packagephpzarinpal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hans-thomas-zarinpal/health.svg)

```
[![Health](https://phpackages.com/badges/hans-thomas-zarinpal/health.svg)](https://phpackages.com/packages/hans-thomas-zarinpal)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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