netwolf103 / ecommerce-sluuf
Create product excel file of upload sluuf
v0.1
2020-04-27 09:10 UTC
Requires
- php: ^7.0
- phpoffice/phpexcel: 1.8.2
This package is auto-updated.
Last update: 2024-10-29 06:19:27 UTC
README
Create product excel file of upload sluuf
Code maintainers
Zhang Zhao netwolf103@gmail.com
Wechat: netwolf103
Require
"php": "^7.0",
"phpoffice/phpexcel": "1.8.2"
Install
composer require netwolf103/ecommerce-sluuf
Usage
require_once "vendor/autoload.php"; use Netwolf103\Ecommerce\Sluuf\Product\Rings; $dataFile = sprintf('%s/var/1688/demo.csv', dirname(dirname(__FILE__))); $product = new Rings($dataFile); $filename = sprintf('%s.xlsx', $product->getSku()); $product->saveExcel($filename);