2017 © Pedro Peláez
 

library csv-parser

Simple system for parsing CSV-files row by row and sending the data to a callback

image

bolstad/csv-parser

Simple system for parsing CSV-files row by row and sending the data to a callback

  • Friday, March 2, 2018
  • by bolstad
  • Repository
  • 1 Watchers
  • 0 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

CsvParser for PHP

Introduction

A simple system for parsing CSV-files row by row and sending the data to a callback function., (*1)

Example


use CsvParser\Simple; function handler ( $data ) { print_r( $data ); } /* Parameters for parseRowByRow: * @param string $filename File to parse * @param string $callback Callback function to send data to * @param int $line Length - Must be greater than the longest line (in characters) to be found in the CSV file (allowing for trailing line-end characters). * @param str $delimiter Set the field delimiter (one character only). * @param str $enclosure Set the field enclosure character (one character only) * @param type $escape Set the escape character (one character only). Defaults as a backslash. * @param bool $autoDetectHeader Try to auto detect header rows - if false, line 1 i always used * @return bool */ Simple::parseRowByRow('file.csv' ,'handler');

History

2014-07-23 Ver 0.1.3 - Quick hack, initial release 2015-08-27 Ver 0.1.4 - Updated README with example code 2018-03-02 Ver 0.2.3 - Attempt to auto detect if first row of file doesn't have the correct header info. 2024-03-05 Ver 0.3.0 - Removed auto_detect_line_endingsas it is deprecated, (*2)

The Versions

02/03 2018

dev-master

9999999-dev

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

02/03 2018

0.2.3

0.2.3.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

02/03 2018

0.2.2

0.2.2.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

02/03 2018

0.2.1

0.2.1.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

02/03 2018

0.2

0.2.0.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

27/08 2015

0.1.4

0.1.4.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

13/04 2015

0.1.3

0.1.3.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

23/07 2014

dev-develop

dev-develop

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

23/07 2014

0.1.2

0.1.2.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

23/07 2014

0.1

0.1.0.0

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad

23/07 2014

dev-feature/readsampledata

dev-feature/readsampledata

Simple system for parsing CSV-files row by row and sending the data to a callback

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Christian Bolstad