parsecsv/parsecsv-for-php
A PHP class for reading and writing CSV files that follows RFC 4180, including enclosed values, embedded commas, quotes and newlines. It detects delimiters automatically, sorts rows by column, filters with SQL-like conditions, limits and offsets, and converts character encodings through iconv or mb_convert_encoding. The library installs with Composer and supports PHP 5.5 through 8.3.
Maintenance activity