/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

Primary LanguagePHPOtherNOASSERTION

Yii 2 Excel

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);
    }
}