ignatenkovnikita/yii2-yandexsprav

Yii2 Yandex Export Product

dev-master 2020-10-15 14:07 UTC

This package is auto-updated.

Last update: 2024-12-15 22:54:42 UTC


README

Yii2 Yandex Export Product

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ignatenkovnikita/yii2-yandexsprav "*"

or add

"ignatenkovnikita/yii2-yandexsprav": "*"

to the require section of your composer.json file.

Usage

Add Action eexample:

public function actions()
{
    return [
        'generate' => [
            'class' => GenerateAction::className(),
            'fileName' => 'xls-yandex-sprav.xlsx', # желаемое название файла
            'publicPath' => '@frontend/web', # публичная директория (обычно корень веб сервера)
            'runtimePath' => '@runtime', # временная директория
            'query' => Product::find()->showOnSite(),
        ],
    ];
}```