dev-master
9999999-devLittle CSV Helper
MIT
csv library helper
v1.0
1.0.0.0Little CSV Helper
MIT
The Requires
csv library helper
Little CSV Helper
Little CSV Helper, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist ignatenkovnikita/little-csv-helper "*"
or add, (*4)
"ignatenkovnikita/little-csv-helper": "*"
to the require section of your composer.json
file., (*5)
Create class DbImporter or other class extends AbstractImporter and implements ImportInterface:, (*6)
<?php class DbImporter extends AbstractImporter implements ImportInterface { public function import($data, $params){ // your logic hear } } ?>
And example how use class:, (*7)
$importer = new CsvImporter(); $importer->setData(new CsvReader([ 'filename' => $fileName, 'fgetcsvOptions' => [ // 'delimiter' => '\n' ], 'startFromLine' => 1 ])); $importerClass = new DbImporter(); $r = $importer->import($importerClass, ['type' => $type]); echo $r
Little CSV Helper
MIT
csv library helper
Little CSV Helper
MIT
csv library helper