exoodev/yii2-shop

There is no license information available for the latest version (1.0.2) of this package.

The Shop extension for the Yii2 framework

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:yii2-extension


README

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist exoodev/yii2-shop

or add

"exoodev/yii2-shop": "*"

to the require section of your composer.json.

Usage

Example backend configuration:

return [
    'modules' => [
        'shop' => [
            'class' => 'exoo\shop\Module',
            'isBackend' => true,
        ],
    ],
    'components' => [
        'menu' => [
            'class' => 'exoo\system\components\Menu',
            'items' => [
                'shop' => '@exoo/shop/config/backend/menu',
            ],
        ],
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
    ]
];

Example frontend configuration:

return [
    'modules' => [
        'shop' => [
            'class' => 'exoo\shop\Module',
        ]
    ],
    'components' => [
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
    ]
];

Migration

yii migrate --migrationPath=@exoo/shop/migrations