alc/csv

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP CSV Reader / Writer

v1.0.0 2016-12-07 15:15 UTC

This package is auto-updated.

Last update: 2021-04-18 18:46:27 UTC


README

Install:

composer require alc/csv:dev-master

Csv Reader:

use Alc\Csv\CsvReader;

$csv = new CsvReader(__DIR__.'/data.csv');

print_r($csv->readAll());

Csv Writer:

use Alc\Csv\CsvWriter;

$csv = new CsvWriter(__DIR__.'/output.csv');

$csv->write(array(
	'Nom' => 'CHEMEL',
	'Prenom' => 'Alexis',
));

$csv->close();