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

Installs: 376

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/shifft/csvparser

1.0.6 2023-11-07 08:53 UTC

This package is not auto-updated.

Last update: 2025-10-07 17:56:31 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