Download the PHP package elfuvo/yii2-import-wizard without Composer
On this page you can find all versions of the php package elfuvo/yii2-import-wizard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-import-wizard
Table of Contents
Requirements
Installation
Configure
- Module common configuration
- I18n messages
- Actions
- Upload import file action
- Upload import file action with pre-defined attribute map
- Import setup action
- Current progress action
Queue job
Import link button
Additional notes
Screenshots
Requirements
- PHP >=7.1
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the "require" section of your composer.json
file.
Configure
Configure service for importing, Importing result keeper and available import adapters.
I18n
Add translations to i18n yii component:
Actions
Add import steps actions to your controller
Upload import file action
Upload import file action with pre-defined attribute map
If you are using attribute map, that you don't need configure setup action. Import starts after file uploaded.
Import setup action
Current progress action
Queue job
If queue component is not configured for Yii application then import will start immediately.
Otherwise ImportJob
will be added to the task queue.
Yii2 queue.
Import link button
Add import link button into your module view:
Additional notes
Model validation rules used as detection for casting value from import. This actual for setup import action. It is necessary to carefully consider validation of the model, as bad validation may lead to incorrect data insertion (for example: a date from Excel cannot be inserted as a date in MySql) and errors when inserting data into the database.
Important! Import file must have column(s) with unique (identity) values for updating existing models.
Screenshots
All versions of yii2-import-wizard with dependencies
yiisoft/yii2 Version ~2.0.12
phpoffice/phpspreadsheet Version ~1.2
yiisoft/yii2-queue Version ~2.3