PHPackages                             eluhr/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. eluhr/yii2-shop-module

ActiveLibrary[Framework](/categories/framework)

eluhr/yii2-shop-module
======================

Yii2 Shop Module

2.1.21(2y ago)31.2k2[2 PRs](https://github.com/eluhr/yii2-shop-module/pulls)PHPCI failing

Since Jun 21Pushed 11mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (83)Used By (0)

Install
=======

[](#install)

```
composer require eluhr/yii2-shop-module
```

Example Config
==============

[](#example-config)

```
use kartik\grid\Module as GridViewModule;
use eluhr\shop\Module as ShopModule;
use eluhr\shop\components\Payment;
use eluhr\shop\components\providers\DirectDebitPayment;
use eluhr\shop\components\providers\PayPalPayment;
use eluhr\shop\components\providers\PayrexxPayment;
use eluhr\shop\components\providers\SaferPayPayment;
use eluhr\shop\models\Order;
use eluhr\shop\components\ShoppingCart;

return [
'aliases' => [
        'eluhr/shop' => '@vendor/eluhr/yii2-shop-module/src'
],
'modules' => [
        'shop' => [
            'class' => ShopModule::class,
        ],
         'gridview' => [
                    'class' => GridViewModule::class
         ]
],
'components' => [
        'shoppingCart' => [
            'class' => ShoppingCart::class
        ],
        'payment' => [
            'class' => Payment::class,
            'currency' => 'EUR',
            'providers' => [
                Order::TYPE_PREPAYMENT => [
                    'class' => DirectDebitPayment::class
                ],
                Order::TYPE_PAYREXX => [
                    'class' => PayrexxPayment::class,
                    'apiKey' => getenv('PAYREXX_API_KEY'),
                    'instanceName' => getenv('PAYREXX_INSTANCE_NAME'),
                    'apiBaseDomain' => getenv('PAYREXX_API_BASE_DOMAIN')
                ],
                Order::TYPE_PAYPAL => [
                    'class' => PayPalPayment::class,
                    'mode' => getenv('PAYPAL_MODE'),
                    'clientId' => getenv('PAYPAL_CLIENT_ID'),
                    'clientSecret' => getenv('PAYPAL_CLIENT_SECRET')
                ],
                Order::TYPE_SAFERPAY => [
                    'class' => SaferPayPayment::class,
                    'baseUrl' => getenv('SAFERPAY_BASE_URL'),
                    'customerId' => getenv('SAFERPAY_CUSTOMER_ID'),
                    'terminalId' => getenv('SAFERPAY_TERMINAL_ID'),
                    'username' => getenv('SAFERPAY_USERNAME'),
                    'password' => getenv('SAFERPAY_PASSWORD')
                ]
            ]
        ],
        'urlManager' => [
            'rules' => [
                'shop' => 'shop/default/index',
                'warenkorb/uebersicht' => 'shop/shopping-cart/overview',
                'warenkorb/checkout' => 'shop/shopping-cart/checkout',
                'warenkorb/meine-bestellung/' => 'shop/shopping-cart/prepayment',
                'shop/meine-bestellungen' => 'shop/orders/all',
                'shop/meine-bestellungen/' => 'shop/orders/detail',
                'shop/-/-' => 'shop/product/detail',
                'shop/-' => 'shop/product/detail'
            ],
            'ignoreLanguageUrlPatterns' => [
                '#^shop/shopping-cart/check-discount-code#' => '#^shop/shopping-cart/check-discount-code#',
                '#^shop/dashboard/update-shipping-link#' => '#^shop/dashboard/update-shipping-link#',
                '#^shop/data/add-tag-to-filter#' => '#^shop/data/add-tag-to-filter#',
                '#^shop/data/add-tag-to-product#' => '#^shop/data/add-tag-to-product#',
                '#^shop/data/sort-filter-tags#' => '#^shop/data/sort-filter-tags#',
                '#^shop/data/sort-products#' => '#^shop/data/sort-products#',
                '#^shop/data/sort-filters#' => '#^shop/data/sort-filters#',
                '#^shop/data/sort-variants#' => '#^shop/data/sort-variants#',
                '#^shop/data/update-email-template#' => '#^shop/data/update-email-template#',
                '#^shop/data/update-email-template-context-menu#' => '#^shop/data/update-email-template-context-menu#',
                '#^shop/data/load-template#' => '#^shop/data/load-template#',
            ]
        ]
    ],
'controllerMap' => [
        'migrate' => [
            'migrationPath' => [
                '@vendor/eluhr/yii2-shop-module/src/migrations'
            ]
        ]
    ]
];
```

frontend access (optional)
==========================

[](#frontend-access-optional)

if you want to add access checks to the frontend controllers, you can add the desired rules via module config

Example:

```
    'modules' => [
        'shop'     => [
            'class' => ShopModule::class,
            # .... other shop configs
            'frontendAccessRules' => [
                [
                    'allow' => true,
                    'roles' => ['@'],
                ],
            ],
        ],
    ],
```

Future plans
============

[](#future-plans)

- Add orders to user by id and postal

Giiant
======

[](#giiant)

```
docker-compose run --rm php yii shop:crud --appconfig=/app/vendor/eluhr/yii2-shop-module/src/config/giiant.php
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 68.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 ~15 days

Recently: every ~46 days

Total

80

Last Release

1028d ago

Major Versions

0.0.1-rc1 → 1.0.02020-06-21

1.2.29 → 2.0.0-rc12022-03-28

1.2.30 → 2.0.22022-04-19

1.2.32 → 2.0.42022-04-20

v1.x-dev → 2.0.52022-04-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/07b2ebef20cf3f8b95894ff50fdb0ba46cf04c8d74ffbb6a4e724af8569a8aec?d=identicon)[eluhr](/maintainers/eluhr)

---

Top Contributors

[![eluhr](https://avatars.githubusercontent.com/u/13000805?v=4)](https://github.com/eluhr "eluhr (116 commits)")[![germanbisurgi](https://avatars.githubusercontent.com/u/13135260?v=4)](https://github.com/germanbisurgi "germanbisurgi (23 commits)")[![handcode](https://avatars.githubusercontent.com/u/825574?v=4)](https://github.com/handcode "handcode (17 commits)")[![a-klapper](https://avatars.githubusercontent.com/u/54941040?v=4)](https://github.com/a-klapper "a-klapper (11 commits)")[![gbisurgi](https://avatars.githubusercontent.com/u/18024942?v=4)](https://github.com/gbisurgi "gbisurgi (2 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.5k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k99.8M354](/packages/laravel-horizon)[laravel/nightwatch

The official Laravel Nightwatch package.

36911.6M45](/packages/laravel-nightwatch)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k66](/packages/skeeks-cms)

PHPackages © 2026

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