Download the PHP package vinorcola/import-bundle without Composer
On this page you can find all versions of the php package vinorcola/import-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vinorcola/import-bundle
More information about vinorcola/import-bundle
Files in vinorcola/import-bundle
Package import-bundle
Short Description Bundle providing tools for importing and mapping a file.
License MIT
Informations about the package import-bundle
Import bundle
A bundle to import data from CSV or Excel files, letting the user map the columns of its file to the required fields for your process.
Configuration
Setup a temporary directory in which the uploaded files will be stored temporarily.
Setup as many imports as you want by configuring:
- the route prefix (several routes are generated for each import process)
- the mapping (the required columns for your process)
- The process service (which must implement
Vinorcola\ImportBundle\Model\ImportConsumerInterface
).
Then, the consume
method of your process service will be called for line of data in the user's file, providing an array with the mapped columns and the line index:
For example, in the App\Model\CompanyImportHandler
, the consume
method will be called with a $values
array containing the following keys:
nationalIdentifier
companyName
address
city
All versions of import-bundle with dependencies
phpoffice/phpspreadsheet Version ^1.0|^2.0
psr/cache Version ^1.0|^2.0|^3.0
symfony/config Version ^4.2|^5.0|^6.0
symfony/contracts Version ^1.1|^2.0|^3.0
symfony/dependency-injection Version ^4.2|^5.0|^6.0
symfony/event-dispatcher Version ^4.2|^5.0|^6.0
symfony/form Version ^4.2|^5.0|^6.0
symfony/http-kernel Version ^4.2|^5.0|^6.0
symfony/routing Version ^4.2|^5.0|^6.0
vinorcola/helper-bundle Version ^1.1