divad942/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

Installs: 145

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 25

Type:yii2-extension

0.1.5 2018-11-30 14:13 UTC

This package is auto-updated.

Last update: 2024-04-29 03:57:09 UTC


README

This is fork of https://github.com/arogachev/yii2-excel

Fixed compatibility issues with PHP 7.2

ActiveRecord import and export based on PHPExcel for Yii 2 framework.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist divad942/yii2-excel

or add

"divad942/yii2-excel": "*"

to the require section of your composer.json file.

Running import

if (!$importer->run()) {
    echo $importer->error;

    if ($importer->wrongModel) {
        echo Html::errorSummary($importer->wrongModel);
    }
}