PHPackages                             aminkt/yii2-shop-module - 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. [Framework](/categories/framework)
4. /
5. aminkt/yii2-shop-module

ActiveYii2-extension[Framework](/categories/framework)

aminkt/yii2-shop-module
=======================

Yii2 shop module for shopping sites

v1.0.0(9y ago)07All right reservedPHP

Since Mar 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aminkt/yii2-shop-module)[ Packagist](https://packagist.org/packages/aminkt/yii2-shop-module)[ Docs](https://gitlab.com/aminkt/yii2-shop-module)[ RSS](/packages/aminkt-yii2-shop-module/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

> NOTE:
>
> This module need aminkt/yii2-ordering-module.
>
> Use bellow link to access ordering module
>
>

How to install this module:

Step1: First add flowing codes into project `composer.json`

```
"repositories": [
    {
        "type": "gitlab",
        "url": "https://gitlab.com/aminkt/yii2-shop-module"
    }
],

```

Then add flowing line to require part of `composer.json` :

```
"aminkt/yii2-shop-module": "*",

```

And after that run bellow command in your composer :

```
Composer update aminkt/yii2-shop-module

```

Step2: Add flowing lines in modules part of your application config:

```
'ordering' => [
    'class' => \aminkt\ordering\Order::className(),
    'orderModelName' => models\Order::className(),
    'orderItemModelName' => models\OrderItem::className(),
    'customerProfileModelName' => models\Customer::className(),
    'productModelName' => models\Product::className(),
],

```

Step3: Add flowing lines in module part of your frontend application config:

```
'shop' => [
    'class'=>\aminkt\shop\Shop::className(),
    'productModel' => models\Product::className(),
    'categoryModel' => models\Category::className(),
    'userModel' => models\Member::className(),
    'theme' => [
        'pathMap' => [
            \aminkt\shop\Shop::THEME_PATH =>'@frontendWeb/themes/theme_name/shop',
        ],
        'baseUrl'=>"/themes/theme_name",
    ],
]

```

step4: Add flowing lines in components part of your application config:

```
'order' => [
    'class' => aminkt\ordering\components\Order::className(),
    'orderModel'=> models\Order::className(),
    'orderItemModel'=> models\OrderItem::className(),
],

```

Step5: Implement

- `aminkt\ordering\interfaces\OrderInterface` in your orders model
- `aminkt\ordering\interfaces\OrderItemInterface` in your orderItems model
- `aminkt\shop\interfaces\CustomerProfileInterface` in you customer users model
- `aminkt\shop\interfaces\ProductInterface` in your products model
- `aminkt\shop\interfaces\CategoryInterface` in your Category model

Step6: Add flowing code into yor product modal.

```
public function getCartPosition()
{
    return \Yii::createObject([
        'class' => ProductCartPosition::className(),
        'id' => $this->id,
    ]);
}

```

Step6: In `@frontendWeb/themes/theme_name/shop` path create your own template of shop.

Step6: Enjoy from module.

[Created by Amin Keshavarz](http://telbit.ir)

[ak\_1596@yahoo.com](mailto:ak_1596@yahoo.com)

[Gitlab repo](https://gitlab.com/aminkt/yii2-shop-module)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Every ~31 days

Total

2

Last Release

3308d ago

Major Versions

v0.0.0 → v1.0.02017-04-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bbb96d5331db7b7c0f1003fdd294ad8865fe7df33cc68bf6cf6fad5550f461e?d=identicon)[aminkt](/maintainers/aminkt)

---

Top Contributors

[![aminkt](https://avatars.githubusercontent.com/u/14914854?v=4)](https://github.com/aminkt "aminkt (17 commits)")

---

Tags

yii2moduleshoporderordering

### Embed Badge

![Health badge](/badges/aminkt-yii2-shop-module/health.svg)

```
[![Health](https://phpackages.com/badges/aminkt-yii2-shop-module/health.svg)](https://phpackages.com/packages/aminkt-yii2-shop-module)
```

PHPackages © 2026

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