PHP code example of jakiboy / pducky
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` = "0000123456789";'
);
echo $price; // 540.23$
$rows = (new Pducky\Adapter('data.csv'))->import()->query(
'SELECT * FROM `temp` LIMIT 100;'
);
echo $rows; // []
(new Pducky\Adapter('data.csv.gz'))->import('db', 'product');