cvs file parser php
Via composer:
$ composer require getbackmyself/csv-parser
#To start the work shown in the examples below, you must first create a namespace
use getbackmyself\CsvParser\CsvParser;
Get Field count
return int:
CsvParser::instance('filename', 'path')->getSize();
Get Table Headers
return array:
CsvParser::instance('filename', 'path')->getHeaders();
Get all Fields
return array:
CsvParser::instance('filename', 'path')->getFields();
Get Field by ID
return array:
CsvParser::instance('filename', 'path')->getField(id);