PHP code example of netwolf103 / ecommerce-sluuf

1. Go to this page and download the library: Download netwolf103/ecommerce-sluuf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

netwolf103 / ecommerce-sluuf example snippets




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);