shifft/csvparser

There is no license information available for the latest version (1.0.6) of this package.

A simple csv parser, with automatic delimiter detection and header detection

1.0.6 2023-11-07 08:53 UTC

This package is not auto-updated.

Last update: 2024-06-18 11:44:54 UTC


README

What is this?

A simple csv parser, with automatic delimiter detection and header detection

Getting Started

To get started, require the package with composer require shifft/csvparser

Usage

Have the following code at the top of your file

use Shifft\CsvParser\CsvParser;

And use it as such:

$parser = new CsvParser();
$parser->parse($data);//data can be a path to a csv file or a csv string
$data = $parser->lines;//get the csv data
$headers = $parser->headers;//get the csv headers