divad942/ yii2-excel
基于PHPExcel的Yii 2框架的ActiveRecord导入导出
0.1.5
2018-11-30 14:13 UTC
Requires
- phpoffice/phpexcel: 1.8.*
- yiisoft/yii2: >=2.0.13
Requires (Dev)
- yiisoft/yii2-codeception: ~2.0
README
这是https://github.com/arogachev/yii2-excel的分支
解决了与PHP 7.2的兼容性问题
基于PHPExcel的Yii 2框架的ActiveRecord导入导出。
安装
安装此扩展的最佳方式是通过composer。
运行以下命令之一:
php composer.phar require --prefer-dist divad942/yii2-excel
或者在您的composer.json
文件的require部分添加以下内容:
"divad942/yii2-excel": "*"
to the require section of your composer.json
file.
运行导入
if (!$importer->run()) { echo $importer->error; if ($importer->wrongModel) { echo Html::errorSummary($importer->wrongModel); } }