yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

  • Owner: arogachev/yii2-excel
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Yii 2 Excel

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

This library is mainly designed to import data, export is in the raw condition (even it's working in basic form),
under development and not documented yet.

The important notes:

  • It uses ActiveRecord models and PHPExcel library, so operating big data requires pretty good hardware, especially RAM.
    In case of memory shortage I can advise splitting data into smaller chunks.
  • This is not just a wrapper on some PHPExcel methods, it's a tool helping import data from Excel in human readable
    form with minimal configuration.
  • This is designed for periodical import.
  • The library is more effective when working with multiple related models and complex data structures.

Latest Stable Version
Total Downloads
Latest Unstable Version
License

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"arogachev/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);
    }
}

Main metrics

Overview
Name With Ownerarogachev/yii2-excel
Primary LanguagePHP
Program languagePHP (Language Count: 2)
Platform
License:Other
所有者活动
Created At2015-04-12 05:57:40
Pushed At2019-10-10 13:47:23
Last Commit At2017-02-21 11:15:11
Release Count2
Last Release Name0.1.1 (Posted on )
First Release Name0.1.0 (Posted on )
用户参与
Stargazers Count64
Watchers Count12
Fork Count25
Commits Count42
Has Issues Enabled
Issues Count44
Issue Open Count27
Pull Requests Count1
Pull Requests Open Count3
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private