PHPackages                             ahmadrezaei/yii2-sep - 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. ahmadrezaei/yii2-sep

ActiveYii2-extension[Payment Processing](/categories/payments)

ahmadrezaei/yii2-sep
====================

By this extension you can add SEP gateway to your yii2 project

v1.0(8y ago)017MITPHP

Since Oct 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ahmadrezaei/yii2-sep)[ Packagist](https://packagist.org/packages/ahmadrezaei/yii2-sep)[ RSS](/packages/ahmadrezaei-yii2-sep/feed)WikiDiscussions master Synced 3d ago

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

Yii2 Iranian SEP Payment Gateway extension
==========================================

[](#yii2-iranian-sep-payment-gateway-extension)

By this extension you can add SEP gateway to your yii2 project

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ahmadrezaei/yii2-sep "*"

```

or add

```
"ahmadrezaei/yii2-sep": "*"

```

to the require section of your `composer.json` file.

Configuring application
-----------------------

[](#configuring-application)

After extension is installed you need to setup auth client collection application component:

```
return [
    'components' => [
        'sep' => [
            'class' => 'ahmadrezaei\yii\sep\components\Sep',
            'MerchantID' => 'YOUR-MID',
            'Password' => 'YOUR-PASSWORD',
            'mysql' => true, // If you want to save records in db
        ]
        // ...
    ],
    // ...
];
```

If you want to save records in database, create migrations:

```
php yii migrate -p=@vendor/ahmadrezaei/yii2-sep/src/migrations

```

Usage
-----

[](#usage)

For create a payment request:

```
$amount = 1000; // Rial
$callBackUrl = Url::to(['callback'], true); // callback url
Yii::$app->sep->createPayment($amount, $callBackUrl);
```

For verify payment request:

```
$sep = Yii::$app->sep;
if( $sep->verify() ) {
    // payment is successfull
    $transactionID = $sep->RefNumber;
} else {
    // payment is unsuccessfull
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3123d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fcd1eebad6858e0c8792f140e9f0c7a4c6a964105e6968fe776825a36f33140?d=identicon)[ahmadrezaei](/maintainers/ahmadrezaei)

---

Top Contributors

[![Adsensor](https://avatars.githubusercontent.com/u/30296591?v=4)](https://github.com/Adsensor "Adsensor (2 commits)")

---

Tags

yii2extensionpaymentgatewaysep

### Embed Badge

![Health badge](/badges/ahmadrezaei-yii2-sep/health.svg)

```
[![Health](https://phpackages.com/badges/ahmadrezaei-yii2-sep/health.svg)](https://phpackages.com/packages/ahmadrezaei-yii2-sep)
```

###  Alternatives

[omalizadeh/laravel-multi-payment

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

491.1k](/packages/omalizadeh-laravel-multi-payment)[dena-a/iran-payment

a Laravel package to handle Internet Payment Gateways for Iran Banking System

312.4k1](/packages/dena-a-iran-payment)

PHPackages © 2026

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