2017 © Pedro Peláez
 

library little-csv-helper

Little CSV Helper

image

ignatenkovnikita/little-csv-helper

Little CSV Helper

  • Monday, March 26, 2018
  • by ignatenkovnikita
  • Repository
  • 1 Watchers
  • 0 Stars
  • 267 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 57 % Grown

The README.md

Little CSV Helper

Little CSV Helper, (*1)

Installation

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)

Usage

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

The Versions

26/03 2018

dev-master

9999999-dev

Little CSV Helper

  Sources   Download

MIT

csv library helper

24/03 2018

v1.0

1.0.0.0

Little CSV Helper

  Sources   Download

MIT

The Requires

 

csv library helper