Type
magento2-module
Magento 2 Module for parsing xlsx, xlsm and csv files from Excel
magento2-module
OSL-3.0, AFL-3.0
None
None
None
None
None
Parse XLSX, XLSM and CSV Files from Excel
Load Uploader and Parser via DI, so they can be used in your method.
$file = $this->uploader->upload(['fileId' => \Magento\ImportExport\Model\Import::FIELD_NAME_SOURCE_FILE]);
$data = $this->parser->readFile($file);
foreach ($data as $index => $values) {
var_dump($index, $values);
}
If you have any issues with this extension, open an issue on GitHub.
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Staempfli Webteam and all other contributors
Open Software License ("OSL") v. 3.0
(c) 2016, Stämpfli AG