1. Go to this page and download the library: Download jakiboy/pducky 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/ */
jakiboy / pducky example snippets
$price = (new Pducky\Adapter('data.csv'))->import()->single(
'SELECT `price` FROM `temp` WHERE `ean` = "4567890123456";'
); // 374.08$
$rows = (new Pducky\Adapter('data.csv'))->import()->query(
'SELECT * FROM `temp` LIMIT 100;'
); // []
(new Pducky\Adapter('data.csv.gz'))->import('data', 'product');
$rows = (new Pducky\Loader())->connect('data.db')
->importCsv('data.csv', 'product')
->query('SELECT * FROM product LIMIT 100;'); // []
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.