ignatenkovnikita/yii2-yandexsprav

Yii2 Yandex Export Product

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/ignatenkovnikita/yii2-yandexsprav

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

This package is auto-updated.

Last update: 2025-10-16 00:37:00 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(),
        ],
    ];
}```