Streaming CSV (Comma-Separated Values or Character-Separated Values) parser and encoder for ReactPHP.
MIT License
Feature: Support custom EOL character when encoding CSV.
(#26 by @clue)
$csv = new Clue\React\Csv\Encoder($stdout, ',', '"', '\\', "\r\n");
Feature: Add headers
event to AssocDecoder
class.
(#29 by @SimonFrings)
$csv->on('headers', function (array $headers) {
var_dump($headers); // e.g. $headers = ['name','age'];
});
Feature: Check type of incoming data
before trying to decode CSV.
(#27 by @clue)
Feature: Support parsing multiline values starting with quoted newline.
(#25 by @KamilBalwierz)
Improve documentation and examples.
(#30 and #28 by @SimonFrings, #22 and #24 by @clue and #23 by @PaulRotmann)
Published by clue almost 4 years ago
Feature: Add decoding benchmark plus benchmark for GZIP-compressed CSV files.
(#15 by @clue)
Improve test suite and add .gitattributes
to exclude dev files from exports.
Add PHP 8 support, update to PHPUnit 9 and simplify test setup.
(#13 and #14 by @clue and #16, #18, #19 and #20 by @SimonFrings)
Improve documentation wording/typos and examples.
(#9 by @loilo and #10 by @clue)