CSV

CSV PHP extension


A new and improved CSV file PHP extension which follows RFC 4180 instead of using a custom escape mechanism.

Supports multi-bytes delimiters, enclosures, and providing a custom EOL sequence.

Sponsor me via GitHub sponsors: https://github.com/sponsors/Girgias

License: PHP V3.01

Latest releases

Version Release Download
0.4.1 2021-09-05 CSV-0.4.1.tgz
0.4.0 2021-02-22 CSV-0.4.0.tgz
0.3.1 2020-03-05 CSV-0.3.1.tgz
0.3.0 2020-03-03 CSV-0.3.0.tgz
Show all releases

Changelog

Version Message
0.4.1 * Compatibility with PHP 8.1.

Sponsor me via GitHub sponsors: https://github.com/sponsors/Girgias
0.4.0 Minimum PHP version is now 8.0 due to the usage of new Zend APIs.
All functions have been moved to static methods of a new CSV class.
Function names now refer to "buffer" instead of "file" as a string is used.
CSV::collectionToBuffer() now supports iterable collections, not just arrays.
In case of field number miss-match a ValueError is thrown instead of an Error.
A new CSV::bufferToCollectionLax() has been introduced which doesn't throw a ValueError in case of field number miss-match.

Sponsor me via GitHub sponsors: https://github.com/sponsors/Girgias
0.3.1 Fix Windows compilation.
Fix package stability.
Add tests for a custom EOL sequence as nul byte.
Bundle tests with release.
0.3.0 Initial release on PECL.
Show complete changelog